Commit b96b7704 authored by Zhang Changzhong's avatar Zhang Changzhong Committed by sanglipeng
Browse files

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: default avatarZhang Changzhong <zhangchangzhong@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/1668684964-48622-1-git-send-email-zhangchangzhong@huawei.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 8394a797
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment