ath9k: Use mutex_lock to avoid potential race in start/stop rng
authorMiaoqing Pan <miaoqing@codeaurora.org>
Tue, 27 Jun 2017 14:31:55 +0000 (17:31 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 28 Jun 2017 16:54:43 +0000 (19:54 +0300)
commitf23cdfb3fe8f6e3502b8aebb819edf5669c1d802
treeebafab2c4a03b99e7fc29f76e1231f5bc7bb06a3
parent473becac4b310dd720a0f5e07ce149a09467f1a4
ath9k: Use mutex_lock to avoid potential race in start/stop rng

Move ath9k_rng_stop/ath9k_rng_start pair into critical section,
use mutex_lock to void potential race accessing.

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