From: Trond Myklebust Date: Thu, 8 Aug 2013 00:38:07 +0000 (-0400) Subject: NFSv4: Fix up nfs4_proc_lookup_mountpoint X-Git-Tag: v3.11-rc5~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b72888cb0ba63b2dfc6c8d3cd78a7fea584bebc6;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed