Skip to contentSkip to conversation

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

PATCH In review Dan Carpenter 2 participants 2 messages Feb 16, 2023 – Feb 20, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: ath12k: use kfree_skb() instead of kfree()

Sk_buffs are supposed to be freed with kfree_skb().

Fixes d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
---
 drivers/net/wireless/ath/ath12k/dp_tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath12k/dp_tx.c +1 -1
index 95294f35155c..fd8d850f9818 100644
@@ -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;
 		}
 
Signature · 1 line
2.39.1
#1 lore raw
Quoted 5 lines · Dan Carpenter

Sk_buffs are supposed to be freed with kfree_skb().

Fixes d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")

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

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

Signature · 9 lines
https://patchwork.kernel.org/project/linux-wireless/patch/Y+4ejiYakhEvEw7c@kili/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


-- 
ath12k mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/ath12k