summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHangyu Hua <hbh25y@gmail.com>2022-03-11 16:06:14 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-08 14:40:44 +0200
commit5318cdf4fd834856ce71238b064f35386f9ef528 (patch)
tree4c7dd0ef20cc991e77c1b62fb8e0e0709f31c9d0 /include/linux
parent869016a2938ac44f7b2fb7fc22c89edad99eb9b3 (diff)
can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path
commit 3d3925ff6433f98992685a9679613a2cc97f3ce2 upstream. There is no need to call dev_kfree_skb() when usb_submit_urb() fails because can_put_echo_skb() deletes original skb and can_free_echo_skb() deletes the cloned skb. Fixes: 0024d8ad1639 ("can: usb_8dev: Add support for USB2CAN interface from 8 devices") Link: https://lore.kernel.org/all/20220311080614.45229-1-hbh25y@gmail.com Cc: stable@vger.kernel.org Signed-off-by: Hangyu Hua <hbh25y@gmail.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions