WSL2-Linux-Kernel/drivers/net/can
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
..
c_can Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-02-05 14:12:20 -05:00
cc770 can: Kconfig: convert 'depends on CAN_DEV' into 'if CAN_DEV...endif' block 2013-01-26 16:58:58 +01:00
mscan can: Kconfig: convert 'depends on CAN_DEV' into 'if CAN_DEV...endif' block 2013-01-26 16:58:58 +01:00
sja1000 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2013-05-01 14:08:52 -07:00
softing FIX: softingcs conversion to module_pcmcia_driver macro 2013-03-18 17:53:34 -07:00
usb can: usb_8dev: unregister netdev before free()ing 2013-06-19 08:56:10 +02:00
Kconfig can: Kconfig: CAN_AT91 depends on ARM 2013-03-27 13:07:08 +01:00
Makefile can: add tx/rx LED trigger support 2013-01-26 16:58:59 +01:00
at91_can.c can: at91_can: add dt support 2013-03-27 13:07:08 +01:00
bfin_can.c can: bfin_can: declare locally used functions static 2013-03-27 13:07:10 +01:00
dev.c can: rework skb reserved data handling 2013-01-28 18:17:25 -05:00
flexcan.c can: flexcan: add LED trigger support 2013-01-26 16:58:59 +01:00
grcan.c can: remove __dev* attributes 2012-12-03 11:16:11 -08:00
janz-ican3.c can: remove __dev* attributes 2012-12-03 11:16:11 -08:00
led.c can: rename LED trigger name on netdev renames 2013-01-26 16:58:59 +01:00
mcp251x.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-04-22 20:32:51 -04:00
pch_can.c can: pch_can: fix invalid error codes 2013-01-26 17:13:41 +01:00
slcan.c can: rework skb reserved data handling 2013-01-28 18:17:25 -05:00
ti_hecc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-01-29 15:32:13 -05:00
vcan.c sections: fix section conflicts in drivers/net 2012-10-06 03:04:42 +09:00