linux/drivers/net/can/usb
Stephane Grosjean fee6a8923a can: peak_usb: fix potential double kfree_skb()
When closing the CAN device while tx skbs are inflight, echo skb could
be released twice. By calling close_candev() before unlinking all
pending tx urbs, then the internal echo_skb[] array is fully and
correctly cleared before the USB write callback and, therefore,
can_get_echo_skb() are called, for each aborted URB.

Fixes: bb4785551f ("can: usb: PEAK-System Technik USB adapters driver core")
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2019-07-24 11:16:31 +02:00
..
kvaser_usb treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
peak_usb can: peak_usb: fix potential double kfree_skb() 2019-07-24 11:16:31 +02:00
Kconfig can: usb: Kconfig: Remove duplicate menu entry 2019-06-07 23:03:53 +02:00
Makefile can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_usb_leaf.c 2018-07-27 10:40:19 +02:00
ems_usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164 2019-05-30 11:26:38 -07:00
esd_usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164 2019-05-30 11:26:38 -07:00
gs_usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
mcba_usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 412 2019-06-05 17:37:14 +02:00
ucan.c can: ucan: fix spelling mistake: "resumbmitting" -> "resubmitting" 2018-11-28 16:19:52 +01:00
usb_8dev.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 412 2019-06-05 17:37:14 +02:00