1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/ipw2x00
Zhengchao Shao 9fe21dc626 wifi: ipw2200: fix memory leak in ipw_wdev_init()
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: a3caa99e6c ("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
2022-12-22 18:05:17 +02:00
..
ipw.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ipw2100.c wifi: ipw2x00: Remove some unused functions 2022-12-08 16:42:44 +02:00
ipw2100.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 507 2019-06-19 17:11:23 +02:00
ipw2200.c wifi: ipw2200: fix memory leak in ipw_wdev_init() 2022-12-22 18:05:17 +02:00
ipw2200.h ipw2x00: Replace zero-length array with DECLARE_FLEX_ARRAY() helper 2022-09-28 09:44:48 +03:00
Kconfig net: wireless: drop bogus CRYPTO_xxx Kconfig selects 2020-09-11 14:39:16 +10:00
libipw.h wifi: ipw2x00: fix array of flexible structures warnings 2022-09-22 09:08:52 +03:00
libipw_geo.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 507 2019-06-19 17:11:23 +02:00
libipw_module.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
libipw_rx.c wifi: ipw2x00: fix array of flexible structures warnings 2022-09-22 09:08:52 +03:00
libipw_tx.c ipw2x00: Fix potential NULL dereference in libipw_xmit() 2022-04-06 15:14:44 +03:00
libipw_wx.c ipw2x00: potential buffer overflow in libipw_wx_set_encodeext() 2021-04-17 20:35:44 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00