summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-07-08 20:27:09 +0200
committerChuck Lever <chuck.lever@oracle.com>2022-07-30 02:16:56 +0200
commit427f5f83a3191cbf024c5aea6e5b601cdf88d895 (patch)
treefdd97a04ea12d861ccf06dadd59f737845a74744 /fs/nfsd/netns.h
parentNFSD: NFSv4 CLOSE should release an nfsd_file immediately (diff)
downloadlinux-427f5f83a3191cbf024c5aea6e5b601cdf88d895.tar.xz
linux-427f5f83a3191cbf024c5aea6e5b601cdf88d895.zip
NFSD: Ensure nf_inode is never dereferenced
The documenting comment for struct nf_file states: /* * A representation of a file that has been opened by knfsd. These are hashed * in the hashtable by inode pointer value. Note that this object doesn't * hold a reference to the inode by itself, so the nf_inode pointer should * never be dereferenced, only used for comparison. */ Replace the two existing dereferences to make the comment always true. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/netns.h')
0 files changed, 0 insertions, 0 deletions