Files
linux/drivers
Ziyang Xuan ecdc28defc net: hso: add failure handler for add_net_device
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>
2021-09-02 11:52:04 +01:00
..
2021-06-30 15:34:19 -06:00
2021-06-17 17:37:18 -07:00
2021-06-04 16:06:57 +09:30
2021-08-26 12:06:42 +01:00
2021-08-14 15:54:09 -06:00
2021-08-14 15:54:09 -06:00