can: gs_usb: gs_destroy_candev(): fix use after free
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 21 May 2014 08:06:02 +0000 (10:06 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 21 May 2014 11:04:20 +0000 (13:04 +0200)
commitcf68f517c5c5041e3f3de502dccb008ec21f7262
tree310db45268278f61b05384f9b78f4ad105ef2417
parent2a7ede540785cac631a7e7334701a25e949853a8
can: gs_usb: gs_destroy_candev(): fix use after free

This patch fixes a use after free of "dev" in gs_destroy_candev().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c