summaryrefslogtreecommitdiff
path: root/drivers/net/usb/aqc111.h
diff options
context:
space:
mode:
authorZiyang Xuan <william.xuanziyang@huawei.com>2021-09-02 16:36:09 +0800
committerDavid S. Miller <davem@davemloft.net>2021-09-02 11:52:04 +0100
commitecdc28defc46af476566fffd9e5cb4495a2f176e (patch)
tree8fd547ded0dfb9348118a09e9c5dee77b1c01cdf /drivers/net/usb/aqc111.h
parentb9edbfe1adecfc48fd11061dce68afb03d6adbdc (diff)
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: 72dc1c096c70 ("HSO: add option hso driver") Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/aqc111.h')
0 files changed, 0 insertions, 0 deletions