projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9346eff
)
nfsd: Fix leaked memory in nfs4_make_rec_clidname
author
Krishna Kumar
<krkumar2@in.ibm.com>
Mon, 20 Oct 2008 06:17:09 +0000
(11:47 +0530)
committer
J. Bruce Fields
<bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:47 +0000
(11:53 -0500)
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>
fs/nfsd/nfs4recover.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4recover.c
b/fs/nfsd/nfs4recover.c
index 0f9d6efaa62bb553bb95b3063516bcb793f52929..74f7b67567fda431dbeb9a0a6a8d3b0a32df8a10 100644
(file)
--- 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;