wifi: wilc1000: fix potential memory leak in wilc_mac_xmit()
stable inclusion from stable-v5.10.173 commit a1e94fb4d09d0fcfeaa73aa49d787f06c42db7ee category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a1e94fb4d09d0fcfeaa73aa49d787f06c42db7ee -------------------------------- [ Upstream commit deb962ec ] The wilc_mac_xmit() returns NETDEV_TX_OK without freeing skb, add dev_kfree_skb() to fix it. Compile tested only. Fixes: c5c77ba1 ("staging: wilc1000: Add SDIO/SPI 802.11 driver") Signed-off-by:Zhang Changzhong <zhangchangzhong@huawei.com> Signed-off-by:
Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/1668684964-48622-1-git-send-email-zhangchangzhong@huawei.com Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment