summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smbdes.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-02-02 14:42:12 +0000
committerSteve French <sfrench@us.ibm.com>2007-02-02 14:42:12 +0000
commit914afcf55ae2621a3c5930e8c458d4ae8636c469 (patch)
tree1df2bec949ef45719c6c9b0339e2835b6ee4ea43 /fs/cifs/smbdes.c
parent9a0c8230e84898ed27f790408805e33fa482b2f9 (diff)
downloadop-kernel-dev-914afcf55ae2621a3c5930e8c458d4ae8636c469.zip
op-kernel-dev-914afcf55ae2621a3c5930e8c458d4ae8636c469.tar.gz
[CIFS] Missing free in error path
Thanks to jra for pointing this out Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/smbdes.c')
-rw-r--r--fs/cifs/smbdes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/smbdes.c b/fs/cifs/smbdes.c
index 1a4a395..1b1daf6 100644
--- a/fs/cifs/smbdes.c
+++ b/fs/cifs/smbdes.c
@@ -207,8 +207,10 @@ dohash(char *out, char *in, char *key, int forw)
return;
ki = kmalloc(16*48, GFP_KERNEL);
- if(ki == NULL)
+ if(ki == NULL) {
+ kfree(pk1);
return;
+ }
cd = pk1 + 56;
pd1= cd + 56;
OpenPOWER on IntegriCloud