USB: auerswald possible memleak fix
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Mon, 6 Nov 2006 23:31:51 +0000 (00:31 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Nov 2006 22:26:12 +0000 (14:26 -0800)
fix possible memory leak in auerbuf_setup().

Regards,

Mariusz Kozlowski

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Wolfgang Muees <wolfgang@iksw-muees.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/auerswald.c

index 0be9d62d62aeda0d096456a88fa5aa09557af0b6..e4971d6aaafb323d5d931c99fe0f25c10d072906 100644 (file)
@@ -780,7 +780,7 @@ static int auerbuf_setup (pauerbufctl_t bcp, unsigned int numElements, unsigned
 
 bl_fail:/* not enough memory. Free allocated elements */
         dbg ("auerbuf_setup: no more memory");
-       kfree(bep);
+       auerbuf_free(bep);
         auerbuf_free_buffers (bcp);
         return -ENOMEM;
 }