wifi: ath12k: fix skb_ext_desc leak in ath12k_dp_tx() error path
authorNicolas Escande <nico.escande@gmail.com>
Wed, 22 Jan 2025 16:01:12 +0000 (17:01 +0100)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Thu, 23 Jan 2025 16:02:58 +0000 (08:02 -0800)
commit28a9972e0f0693cd4d08f431c992fa6be39c788c
treef6d3a1052f2676ba39730e3d8e70e91feeaa9f40
parenta93185b708f259ace63414b8529e9e15c6323b69
wifi: ath12k: fix skb_ext_desc leak in ath12k_dp_tx() error path

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>
Reviewed-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Link: https://patch.msgid.link/20250122160112.3234558-1-nico.escande@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/dp_tx.c