OpenCloudOS-Kernel/drivers/usb/wusbcore
Dan Carpenter f07af4b630 USB: wusbcore/wa-xfer: error handling fixes in setup_segs()
1) It didn't free xfer->seg[0] so there was a leak.
2) xfer->seg[cnt] can be NULL.
3) Use usb_free_urb() for ->dto_urb instead of kfree().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-06 11:38:14 -08:00
..
Kconfig USB: remove CONFIG_EXPERIMENTAL dependancies 2012-09-17 23:00:15 -07:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
cbaf.c USB: convert drivers/usb/* to use module_usb_driver() 2011-11-18 09:34:02 -08:00
crypto.c Fix common misspellings 2011-03-31 11:26:23 -03:00
dev-sysfs.c uwb: use dev_dbg() for debug messages 2008-12-22 18:22:50 +00:00
devconnect.c WUSB: remove an unnused variable 2012-10-22 11:33:34 -07:00
mmc.c usb: Add export.h for EXPORT_SYMBOL/THIS_MODULE where needed 2011-10-31 19:31:25 -04:00
pal.c uwb: add basic radio manager 2008-11-19 14:46:33 +00:00
reservation.c Fix common misspellings 2011-03-31 11:26:23 -03:00
rh.c usb: Add export.h for EXPORT_SYMBOL/THIS_MODULE where needed 2011-10-31 19:31:25 -04:00
security.c wusb: Fix potential memory leak in wusb_dev_sec_add() 2012-08-10 12:06:38 -07:00
wa-hc.c drivers/usb/wusbcore/wa-hc.c: fix error return code 2012-08-15 15:17:40 -07:00
wa-hc.h trivial: fix typos "man[ae]g?ment" -> "management" 2009-09-21 15:14:56 +02:00
wa-nep.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
wa-rpipe.c usb: Add export.h for EXPORT_SYMBOL/THIS_MODULE where needed 2011-10-31 19:31:25 -04:00
wa-xfer.c USB: wusbcore/wa-xfer: error handling fixes in setup_segs() 2013-02-06 11:38:14 -08:00
wusbhc.c wusb: fix find_first_zero_bit() return value check 2011-03-02 19:52:28 -05:00
wusbhc.h Fix common misspellings 2011-03-31 11:26:23 -03:00