linux/drivers/net/wireless/marvell
Zhipeng Lu da10f6b791 wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()
[ Upstream commit 5f0e4aede0 ]

In the for statement of lbs_allocate_cmd_buffer(), if the allocation of
cmdarray[i].cmdbuf fails, both cmdarray and cmdarray[i].cmdbuf needs to
be freed. Otherwise, there will be memleaks in lbs_allocate_cmd_buffer().

Fixes: 876c9d3aeb ("[PATCH] Marvell Libertas 8388 802.11b/g USB driver")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240126075336.2825608-1-alexious@zju.edu.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-03-26 18:19:26 -04:00
..
libertas wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer() 2024-03-26 18:19:26 -04:00
libertas_tf wifi: libertas_tf: don't call kfree_skb() under spin_lock_irqsave() 2022-12-22 18:12:37 +02:00
mwifiex wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir() 2024-03-26 18:19:20 -04:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mwl8k.c wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00