]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:50:59 +0000 (19:50 -0600)
commitca709646c6eaf429a070d161953e13e6a933d731
tree44cb390adde4659c4cd3c4cf99531f74d72d6e70
parent889346e1db571fc9191c307d2d863ed32eb9656d
ath10k: protect ath10k_htt_rx_ring_free with rx_ring.lock

BugLink: https://bugs.launchpad.net/bugs/1836287
[ Upstream commit 168f75f11fe68455e0d058a818ebccfc329d8685 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/wireless/ath/ath10k/htt_rx.c