Hangyu Hua c702227522 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/20220228083639.38183-1-hbh25y@gmail.com
Fixes: 702171adeed3 ("ems_usb: Added support for EMS CPC-USB/ARM7 CAN/USB interface")
Cc: stable@vger.kernel.org
Cc: Sebastian Haas <haas@ems-wuensche.com>
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-03-31 09:55:27 +02:00
..
2022-03-04 12:02:19 +00:00
2022-03-21 18:33:57 -07:00
2022-03-06 11:05:31 +00:00
2022-03-06 11:05:31 +00:00
2022-03-06 11:05:31 +00:00
2022-03-24 13:13:26 -07:00
2022-03-16 08:47:02 -07:00
2022-03-01 08:38:01 +00:00
2022-03-17 20:33:52 +01:00