Re: [PATCH] staging: rtl8723bs: fix memory leaks on rtw_enqueue_cmd() failure
From: Dan Carpenter
Date: Fri Dec 12 2025 - 04:23:48 EST
On Fri, Dec 12, 2025 at 01:09:21PM +0400, Giorgi Tchankvetadze wrote:
> Add error handling for rtw_enqueue_cmd() failures in multiple event
> reporting functions.
>
> When rtw_enqueue_cmd() fails to enqueue a command, the allocated memory
> for the command object and its parameter buffer is not freed, causing
> memory leaks. Add proper error checks and free the allocated memory on
> failure in report_survey_event(), report_surveydone_event(),
> report_join_res(), report_wmm_edca_update(), report_del_sta_event(),
> report_add_sta_event(), and survey_timer_hdl().
>
> Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@xxxxxxxxx>
What? The patch is apparently against a tree that doesn't exist and it
just messes up the indenting.
I've reviewed some of your other emails to LMKL and I'm wondering if
you're doing AI stuff or something? What's going on?
regards,
dan carpenter