can: usb_8dev: fix use-after-free on disconnect
commit3759739426186a924675651b388d1c3963c5710e
authorJohan Hovold <johan@kernel.org>
Tue, 1 Oct 2019 10:29:14 +0000 (1 12:29 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Nov 2019 20:47:20 +0000 (4 21:47 +0100)
tree1e92124b653389dcb7d46785647c2bcb16ed2bbb
parent4d6636498c41891d0482a914dd570343a838ad79
can: usb_8dev: fix use-after-free on disconnect

The driver was accessing its driver data after having freed it.

Fixes: 0024d8ad1639 ("can: usb_8dev: Add support for USB2CAN interface from 8 devices")
Cc: stable <stable@vger.kernel.org> # 3.9
Cc: Bernd Krumboeck <b.krumboeck@gmail.com>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/usb_8dev.c