]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
wcn36xx: Release DMA channel descriptor allocations
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 5 Nov 2021 12:21:51 +0000 (12:21 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:35:28 +0000 (16:35 +0100)
BugLink: https://bugs.launchpad.net/bugs/1960566
[ Upstream commit 3652096e5263ad67604b0323f71d133485f410e5 ]

When unloading the driver we are not releasing the DMA descriptors which we
previously allocated.

Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211105122152.1580542-3-bryan.odonoghue@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/ath/wcn36xx/dxe.c

index 4da25e84793b7273e40b22cda17154f03128ed35..c400261352bc8a0691f583f7244365b4e5425609 100644 (file)
@@ -952,4 +952,9 @@ void wcn36xx_dxe_deinit(struct wcn36xx *wcn)
 
        wcn36xx_dxe_ch_free_skbs(wcn, &wcn->dxe_rx_l_ch);
        wcn36xx_dxe_ch_free_skbs(wcn, &wcn->dxe_rx_h_ch);
+
+       wcn36xx_dxe_deinit_descs(wcn->dev, &wcn->dxe_tx_l_ch);
+       wcn36xx_dxe_deinit_descs(wcn->dev, &wcn->dxe_tx_h_ch);
+       wcn36xx_dxe_deinit_descs(wcn->dev, &wcn->dxe_rx_l_ch);
+       wcn36xx_dxe_deinit_descs(wcn->dev, &wcn->dxe_rx_h_ch);
 }