Skip to content
Commit 4afe2156 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

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: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
Reviewed-by: default avatarBernd Krumboeck <krumboeck@universalnet.at>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 33be081a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment