Re: [PATCH] wifi: rtw88: Fix potential memory leak in rtw_txq_push_skb()
Ping-Ke Shih <[email protected]>
| Newsgroups | org.kernel.vger.linux-wireless,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
Abdun Nihaal <[email protected]> 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: [email protected] > Signed-off-by: Abdun Nihaal <[email protected]> > Acked-by: Ping-Ke Shih <[email protected]> 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