nfsd4: fix memory leak in nfsd4_encode_fattr()
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 10 Mar 2014 04:52:07 +0000 (12:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:28 +0000 (07:59 -0700)
commit647183f379be5a197f3df3a469321de4fe532e54
tree2806d27400b1ecec29f705843bd721be694eb012
parent34ef215eede8f77b8f27d35096aa9e4aa149d522
nfsd4: fix memory leak in nfsd4_encode_fattr()

commit 18df11d0eacf67bbcd8dda755b568bbbd7264735 upstream.

fh_put() does not free the temporary file handle.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4xdr.c