From: Mariusz Kozlowski Date: Mon, 6 Nov 2006 23:31:51 +0000 (+0100) Subject: USB: auerswald possible memleak fix X-Git-Tag: v3.12-rc1~31920^2~20^2~82^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a3fcf5c7f035de8e2b28d144d67b7bebac8a723;p=kernel%2Fkernel-generic.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 0be9d62..e4971d6 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; }