From 914afcf55ae2621a3c5930e8c458d4ae8636c469 Mon Sep 17 00:00:00 2001 From: Steve French Date: Fri, 2 Feb 2007 14:42:12 +0000 Subject: [CIFS] Missing free in error path Thanks to jra for pointing this out Signed-off-by: Jeremy Allison Signed-off-by: Steve French --- fs/cifs/smbdes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/cifs/smbdes.c b/fs/cifs/smbdes.c index 1a4a395c9376..1b1daf63f062 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; -- cgit v1.2.2