mirror of https://lore.kernel.org/ath12k/
 help / color / mirror / Atom feed
* [PATCH] wifi: ath12k: fix skb_ext_desc leak in ath12k_dp_tx error path
@ 2025-01-22 16:01 Nicolas Escande
  2025-01-22 16:46 ` Aditya Kumar Singh
  2025-01-23 16:05 ` Jeff Johnson
  0 siblings, 2 replies; 7+ messages in thread
From: Nicolas Escande @ 2025-01-22 16:01 UTC (permalink / raw)
  To: ath12k; +Cc: linux-wireless

When vlan support was added, we missed that when
ath12k_dp_prepare_htt_metadata returns an error we also need to free the
skb holding the metadata before going on with the cleanup process.
Compile tested only.

Fixes: 26dd8ccdba4d ("wifi: ath12k: dynamic VLAN support")
Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
---
 drivers/net/wireless/ath/ath12k/dp_tx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/ath/ath12k/dp_tx.c b/drivers/net/wireless/ath/ath12k/dp_tx.c
index a8d341a6df01e..e0b85f959cd4a 100644
--- a/drivers/net/wireless/ath/ath12k/dp_tx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_tx.c
@@ -398,6 +398,7 @@ int ath12k_dp_tx(struct ath12k *ar, struct ath12k_link_vif *arvif,
 			if (ret < 0) {
 				ath12k_dbg(ab, ATH12K_DBG_DP_TX,
 					   "Failed to add HTT meta data, dropping packet\n");
+				kfree_skb(skb_ext_desc);
 				goto fail_unmap_dma;
 			}
 		}
-- 
2.48.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-01-23 16:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-22 16:01 [PATCH] wifi: ath12k: fix skb_ext_desc leak in ath12k_dp_tx error path Nicolas Escande
2025-01-22 16:46 ` Aditya Kumar Singh
2025-01-22 18:20   ` Jeff Johnson
2025-01-22 20:19     ` Jeff Johnson
2025-01-23  2:02       ` Aditya Kumar Singh
2025-01-23  9:26       ` Nicolas Escande
2025-01-23 16:05 ` Jeff Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox