diff options
| author | Toke Høiland-Jørgensen <[email protected]> | 2018-02-27 17:09:44 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2018-03-14 09:55:51 +0000 |
| commit | 182b1917109892ab9f26d66bfdcbc4ba6f0a0a65 (patch) | |
| tree | f5c2be05646afedf7805781e2f4887fbf05de893 /drivers/net/wireless/ath/dfs_pattern_detector.c | |
| parent | ath10k: dma unmap mgmt tx buffer if wmi cmd send fails (diff) | |
| download | kernel-182b1917109892ab9f26d66bfdcbc4ba6f0a0a65.tar.gz kernel-182b1917109892ab9f26d66bfdcbc4ba6f0a0a65.zip | |
ath9k: Protect queue draining by rcu_read_lock()
When ath9k was switched over to use the mac80211 intermediate queues,
node cleanup now drains the mac80211 queues. However, this call path is
not protected by rcu_read_lock() as it was previously entirely internal
to the driver which uses its own locking.
This leads to a possible rcu_dereference() without holding
rcu_read_lock(); but only if a station is cleaned up while having
packets queued on the TXQ. Fix this by adding the rcu_read_lock() to the
caller in ath9k.
Fixes: 50f08edf9809 ("ath9k: Switch to using mac80211 intermediate software queues.")
Cc: [email protected]
Reported-by: Ben Greear <[email protected]>
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'drivers/net/wireless/ath/dfs_pattern_detector.c')
0 files changed, 0 insertions, 0 deletions
