Stephane Grosjean
27a4b8bbe9
can: peak_usb: fix potential double kfree_skb()
...
commit fee6a8923ae0d318a7f7950c6c6c28a96cea099b upstream.
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: bb4785551f64 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-16 10:13:50 +02:00
..
2019-08-06 19:05:22 +02:00
2019-08-04 09:32:01 +02:00
2019-07-31 07:28:30 +02:00
2019-08-09 17:53:33 +02:00
2019-04-20 09:15:00 +02:00
2019-07-31 07:28:25 +02:00
2019-08-16 10:13:46 +02:00
2019-08-04 09:32:02 +02:00
2019-04-05 22:31:35 +02:00
2019-07-31 07:28:58 +02:00
2019-08-06 19:05:21 +02:00
2019-07-31 07:28:30 +02:00
2019-05-31 06:47:29 -07:00
2019-02-12 19:46:03 +01:00
2019-08-16 10:13:47 +02:00
2019-08-06 19:05:21 +02:00
2019-07-31 07:28:47 +02:00
2019-07-31 07:28:31 +02:00
2019-05-31 06:47:28 -07:00
2019-07-21 09:04:38 +02:00
2019-07-31 07:28:57 +02:00
2019-08-06 19:05:26 +02:00
2019-08-06 19:05:25 +02:00
2019-08-09 17:53:32 +02:00
2019-05-10 17:53:08 +02:00
2019-06-25 11:36:53 +08:00
2019-07-31 07:28:43 +02:00
2019-08-04 09:32:00 +02:00
2019-05-14 19:18:42 +02:00
2019-08-16 10:13:45 +02:00
2019-08-09 17:53:33 +02:00
2019-08-16 10:13:47 +02:00
2019-08-04 09:32:02 +02:00
2019-06-11 12:21:49 +02:00
2019-08-04 09:32:01 +02:00
2019-05-16 19:42:29 +02:00
2019-07-31 07:28:55 +02:00
2019-07-31 07:28:43 +02:00
2019-08-04 09:32:02 +02:00
2019-05-25 18:25:25 +02:00
2019-07-31 07:28:50 +02:00
2019-07-31 07:28:53 +02:00
2019-08-16 10:13:47 +02:00
2019-08-16 10:13:46 +02:00
2019-05-21 18:50:17 +02:00
2019-08-16 10:13:50 +02:00
2019-08-09 17:53:35 +02:00
2019-07-31 07:28:41 +02:00
2019-06-25 11:36:53 +08:00
2019-06-15 11:54:54 +02:00
2019-06-11 12:21:47 +02:00
2019-06-25 11:36:51 +08:00
2019-07-31 07:28:54 +02:00
2019-08-06 19:05:27 +02:00
2019-07-31 07:28:51 +02:00
2019-07-31 07:28:49 +02:00
2019-07-10 09:54:35 +02:00
2019-06-15 11:54:57 +02:00
2019-05-14 19:18:42 +02:00
2019-08-04 09:32:03 +02:00
2019-02-12 19:45:59 +01:00
2019-06-15 11:54:59 +02:00
2019-08-06 19:05:24 +02:00
2019-07-31 07:28:24 +02:00
2019-07-31 07:28:36 +02:00
2019-06-19 08:21:00 +02:00
2019-08-06 19:05:26 +02:00
2019-08-09 17:53:31 +02:00
2019-06-15 11:54:55 +02:00
2019-08-09 17:53:37 +02:00
2019-05-31 06:47:13 -07:00
2019-07-31 07:28:22 +02:00
2019-07-31 07:28:18 +02:00
2019-06-15 11:54:52 +02:00
2019-05-31 06:47:34 -07:00
2019-07-31 07:28:54 +02:00
2019-02-15 08:09:14 +01:00
2019-08-16 10:13:49 +02:00
2019-06-15 11:54:54 +02:00
2019-07-31 07:28:26 +02:00
2019-06-15 11:54:57 +02:00
2019-05-16 19:42:35 +02:00
2019-05-10 17:53:11 +02:00
2019-05-31 06:47:21 -07:00
2019-06-15 11:54:54 +02:00
2019-08-06 19:05:27 +02:00