wil6210: fix call to wil6210_disconnect during unload
authorLior David <liord@codeaurora.org>
Wed, 9 May 2018 10:06:54 +0000 (13:06 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 12 May 2018 09:27:03 +0000 (12:27 +0300)
commit9861bf3b818fbe810442b89230b80c0385ef9e04
tree0c425e03cfc7d39de738df971d5d9d1f7111e329
parent8a4fa21438e38ed2db8c01a282de3995a6c0d75f
wil6210: fix call to wil6210_disconnect during unload

Move the call to wil6210_disconnect so it will be called
before unregister_netdevice. This is because it calls
netif_carrier_off which is forbidden to call on an
unregistered net device. Calling netif_carrier_off can
add a link watch event which might be handled after
net device was freed, causing a kernel oops.

Signed-off-by: Lior David <liord@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/netdev.c