WSL2-Linux-Kernel/fs/nfs
Trond Myklebust b72888cb0b NFSv4: Fix up nfs4_proc_lookup_mountpoint
Currently, we do not check the return value of client = rpc_clone_client(),
nor do we shut down the resulting cloned rpc_clnt in the case where a
NFS4ERR_WRONGSEC has caused nfs4_proc_lookup_common() to replace the
original value of 'client' (causing a memory leak).

Fix both issues and simplify the code by moving the call to
rpc_clone_client() until after nfs4_proc_lookup_common() has
done its business.

Reported-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2013-08-07 20:47:26 -04:00
..
blocklayout NFSv4.1 use pnfs_device maxcount for the blocklayout gdia_maxcount 2013-06-28 15:34:44 -04:00
objlayout NFSv4.1 use pnfs_device maxcount for the objectlayout gdia_maxcount 2013-06-28 15:34:45 -04:00
Kconfig Kconfig: Add Kconfig entry for Labeled NFS V4 client 2013-06-08 16:20:17 -04:00
Makefile NFSv4: Move the DNS resolver into the NFSv4 module 2013-06-18 13:47:18 -04:00
cache_lib.c
cache_lib.h
callback.c NFS client updates for Linux 3.11 2013-07-09 12:09:43 -07:00
callback.h NFS: Add in v4.2 callback operation 2013-06-08 16:20:18 -04:00
callback_proc.c Merge branch 'labeled-nfs' into linux-next 2013-06-28 16:29:51 -04:00
callback_xdr.c Merge branch 'labeled-nfs' into linux-next 2013-06-28 16:29:51 -04:00
client.c Merge branch 'labeled-nfs' into linux-next 2013-06-28 16:29:51 -04:00
delegation.c locks: protect most of the file_lock handling with i_lock 2013-06-29 12:57:42 +04:00
delegation.h
dir.c NFS: Make nfs_readdir revalidate less often 2013-07-09 17:17:07 -04:00
direct.c
dns_resolve.c NFSv4: Move the DNS resolver into the NFSv4 module 2013-06-18 13:47:18 -04:00
dns_resolve.h
file.c fs: nfs: inform the VM about pages being committed or unstable 2013-07-03 16:07:29 -07:00
fscache-index.c
fscache.c
fscache.h
getroot.c NFS:Add labels to client function prototypes 2013-06-08 16:20:15 -04:00
idmap.c NFS: Improve legacy idmapping fallback 2013-06-28 15:22:07 -04:00
inode.c NFS: Remove unnecessary call to nfs_setsecurity in nfs_fhget() 2013-08-07 17:07:41 -04:00
internal.h Merge branch 'labeled-nfs' into linux-next 2013-06-28 16:29:51 -04:00
iostat.h
mount_clnt.c nfs: have nfs_mount fake up a auth_flavs list when the server didn't provide it 2013-06-28 15:51:51 -04:00
namespace.c NFS:Add labels to client function prototypes 2013-06-08 16:20:15 -04:00
netns.h
nfs.h
nfs2super.c
nfs2xdr.c
nfs3acl.c
nfs3client.c
nfs3proc.c NFS client updates for Linux 3.11 2013-07-09 12:09:43 -07:00
nfs3super.c
nfs3xdr.c
nfs4_fs.h Merge branch 'labeled-nfs' into linux-next 2013-06-28 16:29:51 -04:00
nfs4client.c Merge branch 'labeled-nfs' into linux-next 2013-06-28 16:29:51 -04:00
nfs4file.c NFSv4: Move dentry instantiation into the NFSv4-specific atomic open code 2013-06-06 16:24:43 -04:00
nfs4filelayout.c NFSv4.1: Use layout credentials for get_deviceinfo calls 2013-06-06 16:24:37 -04:00
nfs4filelayout.h NFSv4.1: Use layout credentials for get_deviceinfo calls 2013-06-06 16:24:37 -04:00
nfs4filelayoutdev.c NFSv4.1 Fix gdia_maxcount calculation to fit in ca_maxresponsesize 2013-06-28 15:34:43 -04:00
nfs4getroot.c
nfs4namespace.c
nfs4proc.c NFSv4: Fix up nfs4_proc_lookup_mountpoint 2013-08-07 20:47:26 -04:00
nfs4renewd.c
nfs4session.c NFSv4.1 Refactor nfs4_init_session and nfs4_init_channel_attrs 2013-06-28 15:55:19 -04:00
nfs4session.h NFSv4.1 Refactor nfs4_init_session and nfs4_init_channel_attrs 2013-06-28 15:55:19 -04:00
nfs4state.c NFS client updates for Linux 3.11 2013-07-09 12:09:43 -07:00
nfs4super.c NFSv4: Move the DNS resolver into the NFSv4 module 2013-06-18 13:47:18 -04:00
nfs4sysctl.c
nfs4xdr.c NFSv4: Fix brainfart in attribute length calculation 2013-07-23 14:24:59 -07:00
nfsroot.c
pagelist.c
pnfs.c NFSv4.1: Clean up layout segment comparison helper names 2013-06-18 13:47:18 -04:00
pnfs.h NFSv4.1 Fix gdia_maxcount calculation to fit in ca_maxresponsesize 2013-06-28 15:34:43 -04:00
pnfs_dev.c
proc.c NFS:Add labels to client function prototypes 2013-06-08 16:20:15 -04:00
read.c
super.c NFSv4: Fix the sync mount option for nfs4 mounts 2013-08-07 17:07:41 -04:00
symlink.c
sysctl.c
unlink.c helper for reading ->d_count 2013-07-05 18:59:33 +04:00
write.c NFS: Allow nfs_updatepage to extend a write under additional circumstances 2013-07-09 19:32:50 -04:00