diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-07 20:38:07 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-07 20:47:26 -0400 |
commit | b72888cb0ba63b2dfc6c8d3cd78a7fea584bebc6 (patch) | |
tree | ca1ea405e0d79734771a2a7861b7f363568ac56e /kernel/exec_domain.c | |
parent | eddffa40841c0249678ee5551839e369baa97314 (diff) | |
download | blackbird-op-linux-b72888cb0ba63b2dfc6c8d3cd78a7fea584bebc6.tar.gz blackbird-op-linux-b72888cb0ba63b2dfc6c8d3cd78a7fea584bebc6.zip |
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>
Diffstat (limited to 'kernel/exec_domain.c')
0 files changed, 0 insertions, 0 deletions