linux/drivers/net/can/usb
Marc Kleine-Budde 4afe2156eb can: usb_8dev: unregister netdev before free()ing
The usb_8dev hardware has problems on some xhci USB hosts. The driver fails to
read the firmware revision in the probe function. This leads to the following
Oops:

    [ 3356.635912] kernel BUG at net/core/dev.c:5701!

The driver tries to free the netdev, which has already been registered, without
unregistering it.

This patch fixes the problem by unregistering the netdev in the error path.

Reported-by: Michael Olbrich <m.olbrich@pengutronix.de>
Reviewed-by: Bernd Krumboeck <krumboeck@universalnet.at>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2013-06-19 08:56:10 +02:00
..
peak_usb net: can: peak_usb: Do not do dma on the stack 2013-06-03 14:05:32 +02:00
ems_usb.c drivers: net: Remove remaining alloc/OOM messages 2013-02-08 17:44:39 -05:00
esd_usb2.c net: can: esd_usb2: Do not do dma on the stack 2013-06-03 14:05:31 +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 net: can: kvaser_usb: fix reception on "USBcan Pro" and "USBcan R" type hardware. 2013-06-03 14:02:56 +02: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: unregister netdev before free()ing 2013-06-19 08:56:10 +02:00