can: usb_8dev: fix urb leak on failure path in usb_8dev_start()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 17 Jul 2013 21:20:33 +0000 (01:20 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 19 Jul 2013 12:55:14 +0000 (14:55 +0200)
commit7671986839f9207f8d76e8ef92b2d3f263a794cc
tree5db2bcca46a20f9f0c7205bb6c1932827dcb752b
parent233a26e85f9a72bcd0cdb7a95d1d5abcd052369f
can: usb_8dev: fix urb leak on failure path in usb_8dev_start()

If usb_8dev_start() fails to submit urb,
it unanchors the urb but forgets to free it.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/usb_8dev.c