linux/drivers/net/usb
Linyu Yuan c3b26fdf1b net: cdc_eem: fix tx fixup skb leak
when usbnet transmit a skb, eem fixup it in eem_tx_fixup(),
if skb_copy_expand() failed, it return NULL,
usbnet_start_xmit() will have no chance to free original skb.

fix it by free orginal skb in eem_tx_fixup() first,
then check skb clone status, if failed, return NULL to usbnet.

Fixes: 9f722c0978 ("usbnet: CDC EEM support (v5)")
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-17 11:30:25 -07:00
..
aqc111.c
aqc111.h
asix_common.c
asix_devices.c usbnet: add _mii suffix to usbnet_set/get_link_ksettings 2021-04-06 16:22:36 -07:00
asix.h
ax88172a.c
ax88179_178a.c net: usb: ax88179_178a: initialize local variables before use 2021-04-01 16:09:37 -07:00
catc.c
cdc_eem.c net: cdc_eem: fix tx fixup skb leak 2021-06-17 11:30:25 -07:00
cdc_ether.c net: cdc_ether: record speed in status method 2021-04-06 16:22:37 -07:00
cdc_mbim.c
cdc_ncm.c net: cdc_ncm: switch to eth%d interface naming 2021-06-15 11:24:57 -07:00
cdc_subset.c
cdc-phonet.c net: cdc-phonet: fix data-interface release on probe failure 2021-03-18 19:45:37 -07:00
ch9200.c
cx82310_eth.c
dm9601.c usbnet: add _mii suffix to usbnet_set/get_link_ksettings 2021-04-06 16:22:36 -07:00
gl620a.c
hso.c net: hso: fix control-request directions 2021-05-24 13:16:58 -07:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c
kalmia.c
kaweth.c
Kconfig
lan78xx.c net: lan78xx: advertise tx software timestamping support 2021-05-18 13:38:48 -07:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c usbnet: add _mii suffix to usbnet_set/get_link_ksettings 2021-04-06 16:22:36 -07:00
net1080.c
pegasus.c net: usb: pegasus: use new tasklet API 2021-02-02 15:51:18 -08:00
pegasus.h
plusb.c
qmi_wwan.c qmi_wwan: Do not call netif_rx from rx_fixup 2021-06-15 11:29:28 -07:00
r8152.c r8152: Avoid memcpy() over-reading of ETH_SS_STATS 2021-06-16 13:02:06 -07:00
r8153_ecm.c
rndis_host.c
rtl8150.c net: usb: rtl8150: use new tasklet API 2021-02-02 15:51:18 -08:00
sierra_net.c usbnet: add _mii suffix to usbnet_set/get_link_ksettings 2021-04-06 16:22:36 -07:00
smsc75xx.c net: usb: fix possible use-after-free in smsc75xx_bind 2021-06-16 12:36:09 -07:00
smsc75xx.h
smsc95xx.c
smsc95xx.h
sr9700.c usbnet: add _mii suffix to usbnet_set/get_link_ksettings 2021-04-06 16:22:36 -07:00
sr9700.h
sr9800.c usbnet: add _mii suffix to usbnet_set/get_link_ksettings 2021-04-06 16:22:36 -07:00
sr9800.h
usbnet.c usbnet: add method for reporting speed without MII 2021-04-06 16:22:36 -07:00
zaurus.c