wifi: ipw2200: fix memory leak in ipw_wdev_init()
stable inclusion from stable-v5.10.173 commit 8a2eb9d9d0c1535bc8e22840193bff4cdcac878b 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=8a2eb9d9d0c1535bc8e22840193bff4cdcac878b -------------------------------- [ Upstream commit 9fe21dc6 ] In the error path of ipw_wdev_init(), exception value is returned, and the memory applied for in the function is not released. Also the memory is not released in ipw_pci_probe(). As a result, memory leakage occurs. So memory release needs to be added to the error path of ipw_wdev_init(). Fixes: a3caa99e ("libipw: initiate cfg80211 API conversion (v2)") Signed-off-by:Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by:
Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20221209012422.182669-1-shaozhengchao@huawei.com Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment