ath10k: protect ath10k_htt_rx_ring_free with rx_ring.lock
authorBen Greear <greearb@candelatech.com>
Mon, 18 Jun 2018 14:00:56 +0000 (17:00 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Jun 2018 09:49:04 +0000 (12:49 +0300)
commit168f75f11fe68455e0d058a818ebccfc329d8685
treec04770f92397b09aad82e9832a2e4babfffa8997
parent3f04950f32d5d592ab4fcaecac2178558a6f7437
ath10k: protect ath10k_htt_rx_ring_free with rx_ring.lock

While debugging driver crashes related to a buggy firmware
crashing under load, I noticed that ath10k_htt_rx_ring_free
could be called without being under lock.  I'm not sure if this
is the root cause of the crash or not, but it seems prudent to
protect it.

Originally tested on 4.16+ kernel with ath10k-ct 10.4 firmware
running on 9984 NIC.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/htt_rx.c