Commit a30d4ff8 authored by Nir Lichtman's avatar Nir Lichtman Committed by Daniel Thompson
Browse files

kdb: remove usage of static environment buffer



Problem: The set environment variable logic uses a static "heap" like
buffer to store the values of the variables, and they are never freed,
on top of that this is redundant since the kernel supplies allocation
facilities which are even used also in this file.

Solution: Remove the weird static buffer logic and use kmalloc instead,
call kfree when overriding an existing variable.

Signed-off-by: default avatarNir Lichtman <nir@lichtman.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20250204054741.GB1219827@lichtman.org


Signed-off-by: default avatarDaniel Thompson <daniel@riscstar.com>
parent 80e54e84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment