net: wwan: iosm: fix recursive lock acquire in unregister
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Wed, 4 Aug 2021 16:09:52 +0000 (21:39 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 10:28:55 +0000 (11:28 +0100)
commit679505baaaabed98359c1dfb78f81600e299af21
tree7e87cf895e44b4475de1083a1882c211b119f909
parentc98f5220e9703db2d73b4e89c07879dc61eeab14
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>
drivers/net/wwan/iosm/iosm_ipc_wwan.c