Re: [wireless,v2] wifi: brcmfmac: fix potential memory leak in brcmf_netdev_start_xmit()

From: Kalle Valo
Date: Thu Dec 22 2022 - 11:08:06 EST


Zhang Changzhong <zhangchangzhong@xxxxxxxxxx> wrote:

> 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.
> Compile tested only.
>
> Fixes: 270a6c1f65fe ("brcmfmac: rework headroom check in .start_xmit()")
> Signed-off-by: Zhang Changzhong <zhangchangzhong@xxxxxxxxxx>
> Reviewed-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>

Patch applied to wireless-next.git, thanks.

212fde3fe76e wifi: brcmfmac: fix potential memory leak in brcmf_netdev_start_xmit()

--
https://patchwork.kernel.org/project/linux-wireless/patch/1668684782-47422-1-git-send-email-zhangchangzhong@xxxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches