From: Amitkumar Karwar Date: Wed, 31 Dec 2014 10:36:42 +0000 (-0800) Subject: mwifiex: wakeup pending wait queues X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc647467c178936aad29a1e5332c05a23d6efb39;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mwifiex: wakeup pending wait queues Wakeup pending wait queues in unload path. This will help to avoid soft lockup issues in corner cases. Signed-off-by: Cathy Luo Signed-off-by: Amitkumar Karwar Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c index 524692a59d4a..b115e0f94dd7 100644 --- a/drivers/net/wireless/mwifiex/init.c +++ b/drivers/net/wireless/mwifiex/init.c @@ -408,6 +408,8 @@ mwifiex_adapter_cleanup(struct mwifiex_adapter *adapter) del_timer(&adapter->wakeup_timer); mwifiex_cancel_all_pending_cmd(adapter); + wake_up_interruptible(&adapter->cmd_wait_q.wait); + wake_up_interruptible(&adapter->hs_activate_wait_q); /* Free lock variables */ mwifiex_free_lock_list(adapter);