From: Thomas Pedersen Date: Fri, 20 Apr 2012 18:33:07 +0000 (-0700) Subject: ath6kl: unblock fwlog_block_read() on exit X-Git-Tag: firefly_0821_release~3680^2~2381^2~57^2~287^2~27 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=92ada0468c50eba6546618a643ecd0af7af7435a;p=firefly-linux-kernel-4.4.55.git ath6kl: unblock fwlog_block_read() on exit Complete the waiting fwlog_block_read on debugfs cleanup, otherwise userspace and module unload might softlock. Signed-off-by: Thomas Pedersen Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c index acb6430d8e7e..ced6c6fe5470 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.c +++ b/drivers/net/wireless/ath/ath6kl/debug.c @@ -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); }