Commit 2bd9e7b6 authored by Krishna Kumar's avatar Krishna Kumar Committed by J. Bruce Fields

nfsd: Fix leaked memory in nfs4_make_rec_clidname

cksum.data is not freed up in one error case. Compile tested.
Signed-off-by: default avatarKrishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 9346eff0
...@@ -116,9 +116,9 @@ nfs4_make_rec_clidname(char *dname, struct xdr_netobj *clname) ...@@ -116,9 +116,9 @@ nfs4_make_rec_clidname(char *dname, struct xdr_netobj *clname)
md5_to_hex(dname, cksum.data); md5_to_hex(dname, cksum.data);
kfree(cksum.data);
status = nfs_ok; status = nfs_ok;
out: out:
kfree(cksum.data);
crypto_free_hash(desc.tfm); crypto_free_hash(desc.tfm);
out_no_tfm: out_no_tfm:
return status; return status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment