wifi: ath12k: use kfree_skb() instead of kfree()
Subsystems (2)
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")
Signed-off-by Dan Carpenter <[email protected]>
--- 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
@@ -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
Quoted 5 lines · Dan Carpenter
Sk_buffsare supposed to be freed withkfree_skb().Fixes d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")Signed-off-by Dan Carpenter <[email protected]>Signed-off-by Kalle Valo <[email protected]>
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