]> Git Repo - linux.git/commit
can: ems_usb: ems_usb_start_xmit(): fix double dev_kfree_skb() in error path
authorHangyu Hua <[email protected]>
Mon, 28 Feb 2022 08:36:39 +0000 (16:36 +0800)
committerMarc Kleine-Budde <[email protected]>
Thu, 31 Mar 2022 07:55:27 +0000 (09:55 +0200)
commitc70222752228a62135cee3409dccefd494a24646
tree9c650033daf8b280c01a88d81f7959e9b2a11908
parent2e8e79c416aae1de224c0f1860f2e3350fa171f8
can: ems_usb: ems_usb_start_xmit(): fix double dev_kfree_skb() in error path

There is no need to call dev_kfree_skb() when usb_submit_urb() fails
beacause can_put_echo_skb() deletes the original skb and
can_free_echo_skb() deletes the cloned skb.

Link: https://lore.kernel.org/all/[email protected]
Fixes: 702171adeed3 ("ems_usb: Added support for EMS CPC-USB/ARM7 CAN/USB interface")
Cc: [email protected]
Cc: Sebastian Haas <[email protected]>
Signed-off-by: Hangyu Hua <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
drivers/net/can/usb/ems_usb.c
This page took 0.056936 seconds and 4 git commands to generate.