Skip to content
Snippets Groups Projects
Commit ed1e6211 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarIan Kent <raven@themaw.net>
Cc: stable@kernel.org
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 73ca1001
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment