OrangePi_CM5/drivers/net/usb
Ziyang Xuan f89b0d032f net: hso: add failure handler for add_net_device
[ Upstream commit ecdc28defc46af476566fffd9e5cb4495a2f176e ]

If the network devices connected to the system beyond
HSO_MAX_NET_DEVICES. add_net_device() in hso_create_net_device()
will be failed for the network_table is full. It will lead to
business failure which rely on network_table, for example,
hso_suspend() and hso_resume(). It will also lead to memory leak
because resource release process can not search the hso_device
object from network_table in hso_free_interface().

Add failure handler for add_net_device() in hso_create_net_device()
to solve the above problems.

Fixes: 72dc1c096c ("HSO: add option hso driver")
Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 12:28:05 +02:00
..
Kconfig
…
Makefile
…
aqc111.c
…
aqc111.h
…
asix.h
…
asix_common.c
…
asix_devices.c
…
ax88172a.c
…
ax88179_178a.c
…
catc.c
…
cdc-phonet.c
…
cdc_eem.c net: cdc_eem: fix tx fixup skb leak 2021-06-23 14:42:47 +02:00
cdc_ether.c
…
cdc_mbim.c net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920 2021-09-22 12:28:01 +02:00
cdc_ncm.c net: cdc_ncm: switch to eth%d interface naming 2021-06-23 14:42:45 +02:00
cdc_subset.c
…
ch9200.c
…
cx82310_eth.c
…
dm9601.c
…
gl620a.c
…
hso.c net: hso: add failure handler for add_net_device 2021-09-22 12:28:05 +02:00
huawei_cdc_ncm.c
…
int51x1.c
…
ipheth.c
…
kalmia.c
…
kaweth.c
…
lan78xx.c net: usb: lan78xx: don't modify phy_device state concurrently 2021-08-26 08:35:38 -04:00
lan78xx.h
…
lg-vl600.c
…
mcs7830.c
…
net1080.c
…
pegasus.c net: usb: pegasus: fixes of set_register(s) return value evaluation; 2021-09-03 10:09:23 +02:00
pegasus.h
…
plusb.c
…
qmi_wwan.c
…
r8152.c r8152: fix writing USB_BP2_EN 2021-08-26 08:35:51 -04:00
rndis_host.c
…
rtl8150.c
…
sierra_net.c
…
smsc75xx.c net: usb: fix possible use-after-free in smsc75xx_bind 2021-06-23 14:42:46 +02:00
smsc75xx.h
…
smsc95xx.c
…
smsc95xx.h
…
sr9700.c
…
sr9700.h
…
sr9800.c
…
sr9800.h
…
usbnet.c
…
zaurus.c
…