]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Don't use the delegation->inode in nfs_mark_return_delegation()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 25 Jul 2011 19:37:29 +0000 (15:37 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 25 Jul 2011 19:37:29 +0000 (15:37 -0400)
commitedca5aedce2e12af964264035cce4dd91d6498dc
treeb3485dbf3c041e40ab485b8307fb53f7154330c6
parentf0f268a607c80f5967b009654eb94b66b86345ee
NFSv4: Don't use the delegation->inode in nfs_mark_return_delegation()

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>
Cc: stable@kernel.org
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/delegation.c