diff options
author | M Chetan Kumar <m.chetan.kumar@linux.intel.com> | 2021-08-04 21:39:52 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-05 11:28:55 +0100 |
commit | 679505baaaabed98359c1dfb78f81600e299af21 (patch) | |
tree | 7e87cf895e44b4475de1083a1882c211b119f909 /drivers | |
parent | net: wwan: iosm: correct data protocol mask bit (diff) | |
download | linux-dev-679505baaaabed98359c1dfb78f81600e299af21.tar.xz linux-dev-679505baaaabed98359c1dfb78f81600e299af21.zip |
net: wwan: iosm: fix recursive lock acquire in unregister
Calling unregister_netdevice() inside wwan del link is trying to
acquire the held lock in ndo_stop_cb(). Instead, queue net dev to
be unregistered later.
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wwan/iosm/iosm_ipc_wwan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wwan/iosm/iosm_ipc_wwan.c b/drivers/net/wwan/iosm/iosm_ipc_wwan.c index b2357ad5d517..b571d9cedba4 100644 --- a/drivers/net/wwan/iosm/iosm_ipc_wwan.c +++ b/drivers/net/wwan/iosm/iosm_ipc_wwan.c @@ -228,7 +228,7 @@ static void ipc_wwan_dellink(void *ctxt, struct net_device *dev, RCU_INIT_POINTER(ipc_wwan->sub_netlist[if_id], NULL); /* unregistering includes synchronize_net() */ - unregister_netdevice(dev); + unregister_netdevice_queue(dev, head); unlock: mutex_unlock(&ipc_wwan->if_mutex); |