From: Mariusz Kozlowski Date: Mon, 6 Nov 2006 23:31:51 +0000 (+0100) Subject: USB: auerswald possible memleak fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a3fcf5c7f035de8e2b28d144d67b7bebac8a723;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: auerswald possible memleak fix fix possible memory leak in auerbuf_setup(). Regards, Mariusz Kozlowski Signed-off-by: Mariusz Kozlowski Signed-off-by: Wolfgang Muees Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/auerswald.c b/drivers/usb/misc/auerswald.c index 0be9d62d62ae..e4971d6aaafb 100644 --- a/drivers/usb/misc/auerswald.c +++ b/drivers/usb/misc/auerswald.c @@ -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; }