RE: [PATCH] wifi: rtw88: Fix potential memory leak in rtw_txq_push_skb()

From: Ping-Ke Shih

Date: Mon Jul 27 2026 - 02:53:49 EST


Abdun Nihaal <nihaal@xxxxxxxxxxxxxx> wrote:
> The skb passed to the rtw_hci_tx_write() is expected to be freed when
> the function fails, but the error path in rtw_txq_push_skb() does not
> free the skb before returning. This can lead to a memory leak in
> rtw_txq_push() where a dequeued skb is passed to rtw_txq_push_skb().
>
> Fixes: aaab5d0e6737 ("rtw88: kick off TX packets once for higher efficiency")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>

Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>