Jesper Juhl
2bd15f1f49
USB SL811HS HCD: Fix memory leak in sl811h_urb_enqueue()
...
In drivers/usb/host/sl811-hcd.c::sl811h_urb_enqueue(), memory is allocated
with kzalloc() and assigned to 'ep'. If we leave via the 'fail' label due
to 'if (ep->maxpacket > H_MAXPACKET)', then 'ep' will go out of scope
without having been assigned to anything, so we'll leak the memory we
allocated.
This patch fixes the leak by simply calling kfree(ep); before jumping to
the 'fail' label.
Signed-off-by: Jesper Juhl <jj@chaosbits.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-02-03 16:42:17 -08:00
..
2011-01-20 18:30:17 -08:00
2011-01-28 03:16:20 -05:00
2011-01-24 13:17:06 -08:00
2011-01-25 20:50:07 +01:00
2011-01-13 10:50:24 -08:00
2011-01-19 14:40:41 -02:00
2011-01-13 10:45:01 -08:00
2011-01-26 10:50:06 +10:00
2011-01-26 10:50:04 +10:00
2011-01-20 17:02:05 -08:00
2011-01-12 18:06:19 -05:00
2011-01-13 10:25:58 -08:00
2011-01-13 08:03:09 -08:00
2011-01-17 10:54:41 -08:00
2011-01-13 10:05:56 -08:00
2011-01-21 13:34:39 -08:00
2011-01-20 17:02:05 -08:00
2011-01-26 10:49:59 +10:00
2011-01-28 12:10:13 +10:00
2011-01-20 17:02:05 -08:00
2011-01-25 09:10:50 -08:00
2011-01-14 22:03:50 +01:00
2011-01-20 17:02:05 -08:00
2011-01-25 05:57:34 +10:00
2011-01-20 17:02:05 -08:00
2011-01-31 13:02:34 +10:00
2011-01-13 10:05:56 -08:00
2011-01-26 10:49:58 +10:00
2011-01-20 21:37:29 +10:30
2011-01-21 14:08:34 +11:00
2011-01-14 18:44:22 +01:00
2011-01-31 13:04:11 +10:00
2011-01-13 08:03:22 -08:00
2011-01-14 12:38:18 +01:00
2011-01-14 12:38:12 +01:00
2011-01-31 10:53:37 +00:00
2011-01-29 18:27:13 +02:00
2011-01-26 14:28:52 -08:00
2011-01-16 17:28:21 -08:00
2011-01-15 22:01:58 -07:00
2011-01-26 10:49:59 +10:00
2011-01-20 17:02:05 -08:00
2011-01-20 17:02:05 -08:00
2011-01-31 12:59:34 +10:00
2011-01-12 04:59:44 -05:00
2011-01-14 09:25:59 -08:00
2011-01-26 10:50:00 +10:00
2011-01-22 20:32:37 -08:00
2011-01-14 12:38:16 +01:00
2011-01-21 17:38:20 +01:00
2011-01-19 20:25:45 -08:00
2011-01-14 16:29:49 -08:00
2011-01-19 19:02:35 +09:00
2011-01-18 14:28:48 -08:00
2011-01-20 17:02:05 -08:00
2011-02-01 08:06:31 +10:00
2011-01-14 10:12:29 -06:00
2011-01-13 10:05:56 -08:00
2011-01-12 05:14:15 -05:00
2011-02-01 08:05:19 +10:00
2011-02-03 16:42:17 -08:00
2011-01-26 10:50:06 +10:00
2011-01-20 21:37:30 +10:30
2011-01-13 08:03:22 -08:00
2011-01-12 13:51:35 +00:00
2011-01-20 16:37:28 -08:00
2011-01-14 10:12:29 -06:00
2011-01-20 16:39:23 -08:00