summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4recover.c
diff options
context:
space:
mode:
authorKrishna Kumar <krkumar2@in.ibm.com>2008-10-20 08:17:09 +0200
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-01-06 17:53:47 +0100
commit2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de (patch)
treedc378a128825bbf80367abb9ea8f75261ed1d05c /fs/nfsd/nfs4recover.c
parentnfsd: Minor cleanup of find_stateid (diff)
downloadlinux-2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de.tar.xz
linux-2bd9e7b62e6e1da3f881c40c73d93e9a212ce6de.zip
nfsd: Fix leaked memory in nfs4_make_rec_clidname
cksum.data is not freed up in one error case. Compile tested. Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4recover.c')
-rw-r--r--fs/nfsd/nfs4recover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c
index 0f9d6efaa62b..74f7b67567fd 100644
--- a/fs/nfsd/nfs4recover.c
+++ b/fs/nfsd/nfs4recover.c
@@ -116,9 +116,9 @@ nfs4_make_rec_clidname(char *dname, struct xdr_netobj *clname)
md5_to_hex(dname, cksum.data);
- kfree(cksum.data);
status = nfs_ok;
out:
+ kfree(cksum.data);
crypto_free_hash(desc.tfm);
out_no_tfm:
return status;