diff mbox series

wifi: ath12k: use kfree_skb() instead of kfree()

Message ID Y+4ejiYakhEvEw7c@kili (mailing list archive)
State Accepted
Commit 8c464d16809fa02982f6341ea598ec5d07457f19
Delegated to: Kalle Valo
Headers show
Series wifi: ath12k: use kfree_skb() instead of kfree() | expand

Commit Message

Dan Carpenter Feb. 16, 2023, 12:16 p.m. UTC
Sk_buffs are supposed to be freed with kfree_skb().

Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Signed-off-by: Dan Carpenter <error27@gmail.com>
---
 drivers/net/wireless/ath/ath12k/dp_tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo Feb. 20, 2023, 8:35 a.m. UTC | #1
Dan Carpenter <error27@gmail.com> wrote:

> Sk_buffs are supposed to be freed with kfree_skb().
> 
> Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
> Signed-off-by: Dan Carpenter <error27@gmail.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

Patch applied to ath-next branch of ath.git, thanks.

8c464d16809f wifi: ath12k: use kfree_skb() instead of kfree()
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath12k/dp_tx.c b/drivers/net/wireless/ath/ath12k/dp_tx.c
index 95294f35155c..fd8d850f9818 100644
--- a/drivers/net/wireless/ath/ath12k/dp_tx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_tx.c
@@ -270,7 +270,7 @@  int ath12k_dp_tx(struct ath12k *ar, struct ath12k_vif *arvif,
 					  skb_ext_desc->len, DMA_TO_DEVICE);
 		ret = dma_mapping_error(ab->dev, ti.paddr);
 		if (ret) {
-			kfree(skb_ext_desc);
+			kfree_skb(skb_ext_desc);
 			goto fail_unmap_dma;
 		}