]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: avoid potential freezing during random generator read
authorMiaoqing Pan <miaoqing@codeaurora.org>
Tue, 27 Jun 2017 14:31:54 +0000 (17:31 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 28 Jun 2017 16:54:38 +0000 (19:54 +0300)
commit2276a3599125de1cd07c5047903e92512ccda0ce
tree3d4053e20aac695dfd62df4406f4e38abbe4575a
parent0c42c3dfacc189835a069d7b29abe1004b5f71d8
ath9k: avoid potential freezing during random generator read

In the worst case, ath9k_rng_stop() may take 10s to stop rng kthread.
The time is too long for users, use wait_event_interruptible_timeout()
instead of msleep_interruptible(), wakup immediately once
kthread_should_stop() is true.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/rng.c