summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/htc_hst.c
diff options
context:
space:
mode:
authorMiaoqing Pan <miaoqing@codeaurora.org>2017-06-27 17:31:54 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2017-06-28 19:54:38 +0300
commit473becac4b310dd720a0f5e07ce149a09467f1a4 (patch)
tree3d4053e20aac695dfd62df4406f4e38abbe4575a /drivers/net/wireless/ath/ath9k/htc_hst.c
parent07246c115801c27652700e3679bb58661ef7ed65 (diff)
downloadlinux-473becac4b310dd720a0f5e07ce149a09467f1a4.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_hst.c')
0 files changed, 0 insertions, 0 deletions