linux/drivers/net/can/usb
Alexey Khoroshilov a1c31f1d05 can: ems_usb: fix urb leaks on failure paths
There are a couple failure paths where urb leaks.
Is spare code within ems_usb_start_xmit(),
usb_free_urb() should be used to deallocate urb instead of usb_unanchor_urb().
In ems_usb_start() there is no usb_free_urb() if usb_submit_urb() fails.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Sebastian Haas <dev@sebastianhaas.info>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2013-12-17 11:19:11 +01:00
..
peak_usb can: pcan_usb_core: fix memory leak on failure paths in peak_usb_start() 2013-09-20 20:58:21 +02:00
ems_usb.c can: ems_usb: fix urb leaks on failure paths 2013-12-17 11:19:11 +01:00
esd_usb2.c net: can: esd_usb2: check index of array before accessing 2013-07-19 14:55:13 +02:00
Kconfig can: usb_8dev: Add support for USB2CAN interface from 8 devices 2013-01-26 16:58:58 +01:00
kvaser_usb.c can: kvaser_usb: fix usb endpoints detection 2013-10-31 20:20:23 +01:00
Makefile can: usb_8dev: Add support for USB2CAN interface from 8 devices 2013-01-26 16:58:58 +01:00
usb_8dev.c can: usb_8dev: fix urb leak on failure path in usb_8dev_start() 2013-07-19 14:55:14 +02:00