[PATCH] libertas: fix memory leak in lbs_init_adapter()

Jiri Pirko jiri at resnulli.us
Thu Dec 8 04:52:21 PST 2022


Thu, Dec 08, 2022 at 01:14:48PM CET, shaozhengchao at huawei.com wrote:
>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 at huawei.com>

Reviewed-by: Jiri Pirko <jiri at nvidia.com>



More information about the libertas-dev mailing list