Hi,

On Tue, Jun 16, 2026 at 6:49 PM Naveen Kumar Chaudhary
<[email protected]> wrote:
>
> When kdb_setenv() fails to find a free slot in __env[], the function
> returns KDB_ENVFULL without freeing the previously allocated string
> buffer 'ep', leaking memory on every failed call.
>
> Add the missing kfree(ep) before returning KDB_ENVFULL.
>
> Fixes: a30d4ff8193e ("kdb: remove usage of static environment buffer")
> Signed-off-by: Naveen Kumar Chaudhary <[email protected]>
> ---
>  kernel/debug/kdb/kdb_main.c | 1 +
>  1 file changed, 1 insertion(+)

Since I already provided my tag and this just implements the minor
review feedback I provided, you probably should have carried forward
my tag. In any case:

Reviewed-by: Douglas Anderson <[email protected]>


_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to