NFS: alloc_nfs_open_context() must use the file cred when available
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 8 Feb 2020 00:32:49 +0000 (19:32 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 16 Mar 2020 12:34:28 +0000 (08:34 -0400)
commit1d179d6bd67369a52edea8562154b31ee20be1cc
tree6723936092d7e264fea199f2450c28394a0e9a90
parent244fcd2f9a904523f1b8c1a6c94749e230ac053a
NFS: alloc_nfs_open_context() must use the file cred when available

If we're creating a nfs_open_context() for a specific file pointer,
we must use the cred assigned to that file.

Fixes: a52458b48af1 ("NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c