]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6efb05451e184a3bafc80f68609c6cdf62bad74e
tree6723936092d7e264fea199f2450c28394a0e9a90
parenta2777fb993e9b94bd4f4c482e462662835788a87
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: 45db2439db59 ("NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c