ath6kl: unblock fwlog_block_read() on exit
authorThomas Pedersen <c_tpeder@qca.qualcomm.com>
Fri, 20 Apr 2012 18:33:07 +0000 (11:33 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 23 Apr 2012 11:38:20 +0000 (14:38 +0300)
Complete the waiting fwlog_block_read on debugfs cleanup, otherwise
userspace and module unload might softlock.

Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/debug.c

index acb6430d8e7e6e6d6b654372bde16c5bc4801a85..ced6c6fe54703db72240899e8c2dbb5a14ec8d76 100644 (file)
@@ -1824,6 +1824,7 @@ int ath6kl_debug_init_fs(struct ath6kl *ar)
 void ath6kl_debug_cleanup(struct ath6kl *ar)
 {
        skb_queue_purge(&ar->debug.fwlog_queue);
+       complete(&ar->debug.fwlog_completion);
        kfree(ar->debug.roam_tbl);
 }