linux-stable/drivers/net
Hangyu Hua a5e2259173 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>
[DP: adjusted params of can_free_echo_skb() for 4.14 stable]
Signed-off-by: Dragos-Marian Panait <dragos.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-27 13:15:29 +02:00
..
appletalk net: appletalk: cops: Fix data race in cops_probe1 2021-06-16 11:53:01 +02:00
arcnet net: arcnet: com20020: Fix null-ptr-deref in com20020pci_probe() 2022-03-08 19:01:57 +01:00
bonding bonding: fix data-races around agg_select_timer 2022-02-23 11:57:34 +01:00
caif net: caif: fix memory leak in ldisc_open 2021-06-30 08:48:58 -04:00
can can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path 2022-04-27 13:15:29 +02:00
cris
dsa net: dsa: b53: Fix calculating number of switch ports 2021-09-22 11:45:35 +02:00
ethernet net: micrel: fix KS8851_MLL Kconfig 2022-04-20 09:08:32 +02:00
fddi FDDI: defxx: Make MMIO the configuration default except for EISA 2021-05-22 10:57:41 +02:00
fjes fjes: Check for error irq 2021-12-29 12:17:34 +01:00
hamradio drivers: hamradio: 6pack: fix UAF bug caused by mod_timer() 2022-04-20 09:08:11 +02:00
hippi
hyperv
ieee802154 net: ieee802154: ca8210: Fix lifs/sifs periods 2022-02-23 11:57:34 +01:00
ipvlan
phy net: phy: broadcom: Fix brcm_fet_config_init() 2022-04-20 09:08:21 +02:00
plip
ppp ppp: ensure minimum packet size in ppp_write() 2022-01-27 09:00:51 +01:00
slip drivers: net: slip: fix NPD bug in sl_tx_timeout() 2022-04-20 09:08:32 +02:00
team team: protect features update by RCU to avoid deadlock 2021-02-03 23:22:23 +01:00
usb net: usb: cdc_mbim: avoid altsetting toggling for Telit FN990 2022-03-08 19:01:56 +01:00
vmxnet3 vmxnet3: do not stop tx queues after netif_device_detach() 2021-11-26 11:40:22 +01:00
wan net: lapbether: Prevent racing when checking whether the netif is running 2021-05-22 10:57:32 +02:00
wimax staging: wimax/i2400m: fix byte-order issue 2021-05-22 10:57:16 +02:00
wireless ath5k: fix OOB in ath5k_eeprom_read_pcal_info_5111 2022-04-20 09:08:26 +02:00
xen-netback Revert "xen-netback: Check for hotplug-status existence before watching" 2022-03-16 12:57:08 +01:00
dummy.c
eql.c
geneve.c net: geneve: check skb is large enough for IPv4/IPv6 header 2021-04-28 12:08:43 +02:00
gtp.c net: icmp: pass zeroed opts from icmp{,v6}_ndo_send before sending 2021-03-03 18:22:57 +01:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c net: macsec: Verify that send_sci is on when setting Tx sci explicitly 2022-02-08 18:16:29 +01:00
macvlan.c
macvtap.c macvtap: advertise link netns via netlink 2022-04-20 09:08:27 +02:00
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tun.c tun: fix bonding active backup with arp monitoring 2021-11-26 11:40:40 +01:00
veth.c veth: Ensure eth header is in skb's linear part 2022-04-20 09:08:31 +02:00
virtio_net.c virtio_net: Do not pull payload in skb->head 2021-08-04 12:22:15 +02:00
vrf.c vrf: Reset IPCB/IP6CB when processing outbound pkts in vrf dev xmit 2021-12-08 08:46:54 +01:00
vsockmon.c
vxlan.c vxlan: add missing rcu_read_lock() in neigh_reduce() 2021-07-20 16:17:37 +02:00
xen-netfront.c xen/netfront: react properly to failing gnttab_end_foreign_access_ref() 2022-03-11 10:13:33 +01:00