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
..
2010-12-10 14:18:35 -08:00
2010-11-30 16:51:21 -08:00
2011-01-22 18:36:43 -08:00
2010-12-16 10:05:06 -08:00
2010-12-16 13:36:12 -08:00
2009-06-16 14:17:32 +10:00
2010-11-01 17:01:27 -04:00
2010-08-10 14:35:44 -07:00
2011-01-14 15:51:51 -08:00