libertas: wakeup command queue waiters on shutdown

Marcelo Tosatti mtosatti at redhat.unroutablecom
Mon Dec 11 15:18:31 EST 2006


Commit:     dd31161817c26aa7117aebef87c99796ceb813c0
Parent:     0de0a9e7e107cc3967b92adcdc9c8bf77d79cd8a
commit dd31161817c26aa7117aebef87c99796ceb813c0
Author:     Marcelo Tosatti <mtosatti at redhat.com>
AuthorDate: Mon Dec 11 13:20:49 2006 -0200
Commit:     Marcelo Tosatti <mtosatti at redhat.com>
CommitDate: Mon Dec 11 13:20:49 2006 -0200

    libertas: wakeup command queue waiters on shutdown
    
    Fix the situation where the main thread is gone while there are
    tasks waiting for commands to finish (association worker thread).
    
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
---
 drivers/net/wireless/libertas/wlan_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/libertas/wlan_main.c b/drivers/net/wireless/libertas/wlan_main.c
index 1befb60..5d8ea9f 100644
--- a/drivers/net/wireless/libertas/wlan_main.c
+++ b/drivers/net/wireless/libertas/wlan_main.c
@@ -890,6 +890,8 @@ static int wlan_service_main_thread(void
 	}
 
 	del_timer(&Adapter->command_timer);
+	Adapter->is_cmd_pending = 0;
+	wake_up_all(&Adapter->cmd_pending);
 	wlan_deactivate_thread(thread);
 
 	LEAVE();


More information about the Commits-kernel mailing list