linux/drivers/usb/host/whci
Alexey Khoroshilov 05f2b39123 USB: whci-hcd: Fix potential memory leak in qset_add_urb_sg()
Do not leak memory by updating pointer with potentially
NULL realloc return value.

By the way remove unused local variable:
	struct whc_page_list_entry *entry;
More precisely, it was used to increment uninitialized value within one of cycles.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-08-10 12:06:39 -07:00
..
asl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
debug.c usb: Add export.h for EXPORT_SYMBOL/THIS_MODULE where needed 2011-10-31 19:31:25 -04:00
hcd.c usb: Add module.h to drivers/usb consumers who really use it. 2011-10-31 19:31:25 -04:00
hw.c
init.c treewide: Convert uses of struct resource to resource_size(ptr) 2011-06-10 14:55:36 +02:00
int.c
Kbuild usb: makefile cleanup 2010-10-22 10:22:07 -07:00
pzl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
qset.c USB: whci-hcd: Fix potential memory leak in qset_add_urb_sg() 2012-08-10 12:06:39 -07:00
whcd.h
whci-hc.h
wusb.c