]> 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)
commit68e0a330626a481671969e1500f660d0c4721baf
tree6723936092d7e264fea199f2450c28394a0e9a90
parent0490e2f5ad4e1459ba0e707691bb8d1ae6c210aa
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: c04f0e0ce679 ("NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c