Re: [PATCH] wifi: rtw88: Fix potential memory leak in rtw_txq_push_skb()
From: Ping-Ke Shih
Date: Thu Jul 30 2026 - 01:45:10 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>
1 patch(es) applied to rtw-next branch of rtw.git, thanks.
9f2948010764 wifi: rtw88: Fix potential memory leak in rtw_txq_push_skb()
---
https://github.com/pkshih/rtw.git