summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorHari Chandrakanthan <quic_haric@quicinc.com>2023-05-29 15:43:58 +0530
committerKalle Valo <quic_kvalo@quicinc.com>2023-06-09 16:33:05 +0300
commite2d1f005d3fbaea14ddea1a24db924406e55f6c3 (patch)
treec61f0fee39eefbcce8d8ca7bb9e133b8fb4772bd /drivers/net/wireless
parent8f04852e90cbed8e12c13d75a87adbad313d365e (diff)
downloadlinux-stable-e2d1f005d3fbaea14ddea1a24db924406e55f6c3.tar.gz
linux-stable-e2d1f005d3fbaea14ddea1a24db924406e55f6c3.tar.bz2
linux-stable-e2d1f005d3fbaea14ddea1a24db924406e55f6c3.zip
wifi: ath12k: delete the timer rx_replenish_retry during rmmod
The rx_replenish_retry timer is initialized in ath12k_core_alloc() when ath12k module is loaded. But rx_replenish_retry timer is not deleted anywhere in the code. It is supposed to be deleted when ath12k module is removed/unloaded. Delete the timer rx_replenish_retry in ath12k_core_free(). Found during code review. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0-02903-QCAHKSWPL_SILICONZ-1 Signed-off-by: Hari Chandrakanthan <quic_haric@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/1685355238-3282-1-git-send-email-quic_haric@quicinc.com
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath12k/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath12k/core.c b/drivers/net/wireless/ath/ath12k/core.c
index 499b81cd938e..3df8059d5512 100644
--- a/drivers/net/wireless/ath/ath12k/core.c
+++ b/drivers/net/wireless/ath/ath12k/core.c
@@ -886,6 +886,7 @@ void ath12k_core_deinit(struct ath12k_base *ab)
void ath12k_core_free(struct ath12k_base *ab)
{
+ timer_delete_sync(&ab->rx_replenish_retry);
destroy_workqueue(ab->workqueue_aux);
destroy_workqueue(ab->workqueue);
kfree(ab);