diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-12-09 04:24:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-10 11:32:49 +0300 |
commit | 62ec7e8bf42f1542f966dda687c654aae81718c8 (patch) | |
tree | 5f0ddc4362c7dc99a40f23bbc13016ec139bb527 /drivers/nubus | |
parent | b7a05cdce2ccd64ea5910e7cde5244f8dd834b5f (diff) | |
download | linux-62ec7e8bf42f1542f966dda687c654aae81718c8.tar.xz |
wifi: ipw2200: fix memory leak in ipw_wdev_init()
[ Upstream commit 9fe21dc626117fb44a8eb393713a86a620128ce3 ]
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: a3caa99e6c68 ("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>
Diffstat (limited to 'drivers/nubus')
0 files changed, 0 insertions, 0 deletions