[PATCH ath-next] wifi: ath12k: free skb during idr cleanup callback
Jeff Johnson
jeff.johnson at oss.qualcomm.com
Mon Oct 6 09:51:53 PDT 2025
On Tue, 23 Sep 2025 15:03:16 -0700, Muna Sinada wrote:
> ath12k just like ath11k [1] did not handle skb cleanup during idr
> cleanup callback. Both ath12k_mac_vif_txmgmt_idr_remove() and
> ath12k_mac_tx_mgmt_pending_free() performed idr cleanup and DMA
> unmapping for skb but only ath12k_mac_tx_mgmt_pending_free() freed
> skb. As a result, during vdev deletion a memory leak occurs.
>
> Refactor all clean up steps into a new function. New function
> ath12k_mac_tx_mgmt_free() creates a centralized area where idr
> cleanup, DMA unmapping for skb and freeing skb is performed. Utilize
> skb pointer given by idr_remove(), instead of passed as a function
> argument because IDR will be protected by locking. This will prevent
> concurrent modification of the same IDR.
>
> [...]
Applied, thanks!
[1/1] wifi: ath12k: free skb during idr cleanup callback
commit: 92282074e1d2e7b6da5c05fe38a7cc974187fe14
Best regards,
--
Jeff Johnson <jeff.johnson at oss.qualcomm.com>
More information about the ath12k
mailing list