summaryrefslogtreecommitdiff
path: root/fs
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-27 13:50:45 +0200
commit660784e7194ac2953aebe874c1f75f2441ba3d19 (patch)
treef69b3c5be5b26e59c509dc76283d496a5d02b90f /fs
parent2da11442a1e3317e7cfdda94e7ca90b9274dfe33 (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> [DP: adjusted params of can_free_echo_skb() for 5.4 stable] Signed-off-by: Dragos-Marian Panait <dragos.panait@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions