mwifiex: wakeup pending wait queues
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 31 Dec 2014 10:36:42 +0000 (02:36 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Jan 2015 19:19:49 +0000 (21:19 +0200)
Wakeup pending wait queues in unload path. This will help to avoid
soft lockup issues in corner cases.

Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/init.c

index 524692a59d4a6fd601cbc0c97437324a4407453f..b115e0f94dd7850fd6f1d566c687986661941ffc 100644 (file)
@@ -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);