From: Marc Kleine-Budde Date: Tue, 18 Jun 2013 12:33:58 +0000 (+0200) Subject: can: usb_8dev: unregister netdev before free()ing X-Git-Tag: v3.10~13^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4afe2156eb639e563d6ef0c2706b66ea400348b2;p=pandora-kernel.git 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 Reviewed-by: Bernd Krumboeck Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed