Thread (1 message) 1 message, 1 author, 2022-11-18

Re: [PATCH wireless] brcmfmac: fix potential memory leak in brcmf_netdev_start_xmit()

From: Kalle Valo <kvalo@kernel.org>
Date: 2022-11-18 18:43:20
Also in: linux-wireless, lkml

Zhang Changzhong [off-list ref] writes:
On 2022/11/17 18:09, Kalle Valo wrote:
quoted
Zhang Changzhong [off-list ref] writes:
quoted
The brcmf_netdev_start_xmit() returns NETDEV_TX_OK without freeing skb
in case of pskb_expand_head() fails, add dev_kfree_skb() to fix it.

Fixes: 270a6c1f65fe ("brcmfmac: rework headroom check in .start_xmit()")
Signed-off-by: Zhang Changzhong <redacted>
I assume you have not tested this on a real device? Then it would be
really important to add "Compile tested only" to the commit log so that
we know it's untested.
OK, I'll add "Compile tested only" to the next version and other untested
patches.
Thanks. I wish it would become common to use that "Compile tested only".

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help