summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2022-12-08 15:14:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-10 11:32:48 +0300
commit653d13a73e498d0bb6aeaf689aaa960defa7878b (patch)
tree591078fb865ccdbb09eb5ba30ef53a2cd2db3146 /drivers/net/wireless/realtek
parente81114f49b671ae0ef6623e6b4f2e9fbbd025dc7 (diff)
downloadlinux-653d13a73e498d0bb6aeaf689aaa960defa7878b.tar.xz
wifi: libertas: fix memory leak in lbs_init_adapter()
[ Upstream commit 16a03958618fb91bb1bc7077cf3211055162cc2f ] When kfifo_alloc() failed in lbs_init_adapter(), cmd buffer is not released. Add free memory to processing error path. Fixes: 7919b89c8276 ("libertas: convert libertas driver to use an event/cmdresp queue") Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20221208121448.2845986-1-shaozhengchao@huawei.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/wireless/realtek')
0 files changed, 0 insertions, 0 deletions