summaryrefslogtreecommitdiff
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2011-07-25 15:37:29 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-04 21:58:40 -0700
commit1fcb9d4b03b6ad6f4de417bbbe21d82123290114 (patch)
tree6f5a9df4af2fc061194198fec3018e843781affa /fs/nfs/dir.c
parent83d20a07d3fc171d5d7cddb6ebe2cd7a5fee1047 (diff)
downloadlwn-1fcb9d4b03b6ad6f4de417bbbe21d82123290114.tar.gz
lwn-1fcb9d4b03b6ad6f4de417bbbe21d82123290114.zip
NFSv4: Don't use the delegation->inode in nfs_mark_return_delegation()
commit ed1e6211a0a134ff23592c6f057af982ad5dab52 upstream. nfs_mark_return_delegation() is usually called without any locking, and so it is not safe to dereference delegation->inode. Since the inode is only used to discover the nfs_client anyway, it makes more sense to have the callers pass a valid pointer to the nfs_server as a parameter. Reported-by: Ian Kent <raven@themaw.net> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/nfs/dir.c')
0 files changed, 0 insertions, 0 deletions