]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Avoid mgmt tx count underflow
authorSriram R <srirrama@codeaurora.org>
Mon, 30 Mar 2020 11:17:08 +0000 (16:47 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 6 Apr 2020 16:20:48 +0000 (19:20 +0300)
commit7e8a99922d9cd43647aa9a387a4bdf865fb1c974
tree1d3b0249b1f5043a9678345e753ae748550a0847
parentdaff10759f3074117a731313f0609cf33ec57a6f
ath11k: Avoid mgmt tx count underflow

The mgmt tx count reference is incremented/decremented on every mgmt tx and on
tx completion event from firmware.
In case of an unexpected mgmt tx completion event from firmware,
the counter would underflow. Avoid this by decrementing
only when the tx count is greater than 0.

Signed-off-by: Sriram R <srirrama@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1585567028-9242-1-git-send-email-srirrama@codeaurora.org
drivers/net/wireless/ath/ath11k/wmi.c