mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 00:29:50 +00:00
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>
This commit is contained in:
parent
9346eff0de
commit
2bd9e7b62e
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user