Skip to content
Commit 16a03958 authored by Zhengchao Shao's avatar Zhengchao Shao Committed by Kalle Valo
Browse files

wifi: libertas: fix memory leak in lbs_init_adapter()



When kfifo_alloc() failed in lbs_init_adapter(), cmd buffer is not
released. Add free memory to processing error path.

Fixes: 7919b89c ("libertas: convert libertas driver to use an event/cmdresp queue")
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221208121448.2845986-1-shaozhengchao@huawei.com
parent 0c152867
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment