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
..
2013-11-27 01:03:27 +01:00
2013-12-06 08:30:18 -08:00
2013-11-19 15:53:02 -05:00
2013-10-29 12:53:07 +02:00
2013-12-08 18:47:25 -08:00
2013-11-07 19:24:20 +01:00
2013-12-12 11:05:19 -08:00
2013-12-02 21:11:30 +00:00
2013-12-13 13:22:22 -08:00
2013-12-08 18:47:25 -08:00
2013-11-15 14:05:15 -08:00
2013-10-24 16:18:40 +01:00
2013-11-18 15:35:09 -08:00
2013-12-13 11:39:54 -08:00
2013-12-06 08:30:18 -08:00
2013-11-29 12:53:19 -08:00
2013-12-10 08:48:15 +01:00
2013-12-02 10:12:01 -08:00