summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorStephane Grosjean <s.grosjean@peak-system.com>2019-07-05 15:32:16 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-25 10:52:45 +0200
commitd199791ee6b95c800c3a0583b9dc8f6590318125 (patch)
tree7ee72b3637aa1553c36facde4b88d04eebd32628 /tools/perf/scripts/python/export-to-postgresql.py
parent2ef494ad6274e963dc0fe64a8b405d22e0700e9b (diff)
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions