summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorZhang Changzhong <zhangchangzhong@huawei.com>2022-11-17 14:33:01 +0300
committerKalle Valo <kvalo@kernel.org>2022-12-22 19:07:22 +0300
commit212fde3fe76e962598ce1d47b97cc78afdfc71b3 (patch)
tree26dc4da1bac8707ed58168c800b0f291a7496e01 /include/linux
parent0a06cadcc2a0044e4a117cc0e61436fc3a0dad69 (diff)
downloadlinux-212fde3fe76e962598ce1d47b97cc78afdfc71b3.tar.xz
wifi: brcmfmac: fix potential memory leak in brcmf_netdev_start_xmit()
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@huawei.com> Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/1668684782-47422-1-git-send-email-zhangchangzhong@huawei.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions