diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2006-11-07 00:31:51 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-11-16 23:26:12 +0100 |
commit | 5a3fcf5c7f035de8e2b28d144d67b7bebac8a723 (patch) | |
tree | 8be4fb6cb28dc58930edbbc5a50fb6420eb3ca7b | |
parent | USB: ipaq: Add HTC Modem Support (diff) | |
download | linux-5a3fcf5c7f035de8e2b28d144d67b7bebac8a723.tar.xz linux-5a3fcf5c7f035de8e2b28d144d67b7bebac8a723.zip |
USB: auerswald possible memleak fix
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>
-rw-r--r-- | drivers/usb/misc/auerswald.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |