projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0029908
)
USB: auerswald possible memleak fix
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Mon, 6 Nov 2006 23:31:51 +0000
(
00:31
+0100)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/auerswald.c
b/drivers/usb/misc/auerswald.c
index 0be9d62d62aeda0d096456a88fa5aa09557af0b6..e4971d6aaafb323d5d931c99fe0f25c10d072906 100644
(file)
--- 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");
-
k
free(bep);
+
auerbuf_
free(bep);
auerbuf_free_buffers (bcp);
return -ENOMEM;
}