From: Trond Myklebust Date: Wed, 2 Sep 2009 20:48:32 +0000 (-0400) Subject: NFSd: Fix filehandle leak in exp_pseudoroot() and nfsd4_path() X-Git-Tag: v2.6.32-rc1~412^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2671a4bf3516757ca028c139a7902a50f2bd994a;p=pandora-kernel.git NFSd: Fix filehandle leak in exp_pseudoroot() and nfsd4_path() nfsd4_path() allocates a temporary filehandle and then fails to free it before the function exits, leaking reference counts to the dentry and export that it refers to. Also, nfsd4_lookupp() puts the result of exp_pseudoroot() in a temporary filehandle which it releases on success of exp_pseudoroot() but not on failure; fix exp_pseudoroot to ensure that on failure it releases the filehandle before returning. Signed-off-by: Trond Myklebust Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed