aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/misc/auerswald.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2006-11-07 00:31:51 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-11-16 14:26:12 -0800
commit5a3fcf5c7f035de8e2b28d144d67b7bebac8a723 (patch)
tree8be4fb6cb28dc58930edbbc5a50fb6420eb3ca7b /drivers/usb/misc/auerswald.c
parent0029908ba9661ef26f7020309966aae23c2027b8 (diff)
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>
Diffstat (limited to 'drivers/usb/misc/auerswald.c')
-rw-r--r--drivers/usb/misc/auerswald.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/auerswald.c b/drivers/usb/misc/auerswald.c
index 0be9d62d62a..e4971d6aaaf 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;
}