projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b483b6a
)
USB: isd200: fix memory leak in isd200_get_inquiry_data
author
Boaz Harrosh
<bharrosh@panasas.com>
Mon, 17 Mar 2008 21:21:01 +0000
(14:21 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 25 Mar 2008 05:26:14 +0000
(22:26 -0700)
If the inquiry fails then the info structure on us->extra was not freed.
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/isd200.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/storage/isd200.c
b/drivers/usb/storage/isd200.c
index 9d3f28b92cbeaa8411d8953e6128ffe4f01af64c..971d13dd5e65a55e9256c932d63bc6b0a0caa1e4 100644
(file)
--- a/
drivers/usb/storage/isd200.c
+++ b/
drivers/usb/storage/isd200.c
@@
-1230,6
+1230,7
@@
static int isd200_get_inquiry_data( struct us_data *us )
/* Free driver structure */
us->extra_destructor(info);
+ kfree(info);
us->extra = NULL;
us->extra_destructor = NULL;
}