linux/drivers/net/can/usb
Hangyu Hua 5318cdf4fd can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path
commit 3d3925ff64 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: 0024d8ad16 ("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>
2022-04-08 14:40:44 +02:00
..
kvaser_usb can: kvaser_usb: get CAN clock frequency from device 2021-12-14 11:32:35 +01:00
peak_usb can: peak_usb: pcan_usb_fd_decode_status(): fix back to ERROR_ACTIVE state notification 2021-10-27 09:56:50 +02:00
ems_usb.c can: ems_usb: ems_usb_start_xmit(): fix double dev_kfree_skb() in error path 2022-04-08 14:39:51 +02:00
esd_usb2.c can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters 2021-09-03 10:09:22 +02:00
gs_usb.c can: gs_usb: change active_channels's type from atomic_t to u8 2022-03-08 19:09:35 +01:00
Kconfig can: drivers: fix spelling mistakes 2020-09-21 10:13:16 +02:00
Makefile can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_usb_leaf.c 2018-07-27 10:40:19 +02:00
mcba_usb.c can: mcba_usb: properly check endpoint type 2022-04-08 14:40:40 +02:00
ucan.c can: drivers: fix spelling mistakes 2020-09-21 10:13:16 +02:00
usb_8dev.c can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path 2022-04-08 14:40:44 +02:00