mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 22:28:17 +01:00
boot: android: free newbootargs when done
Free newbootargs when the concatenation is done and bootargs env is set. Fixes: 86f4695b ("image: Fix Android boot image support") Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Signed-off-by: Nicolas Belin <nbelin@baylibre.com> Link: https://lore.kernel.org/r/20241217-fix-bootargs-concatenation-v2-2-b2fd7cf4e130@baylibre.com Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
parent
53a0ddb6d3
commit
fd8b44a81b
@ -322,6 +322,7 @@ int android_image_get_kernel(const void *hdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
env_set("bootargs", newbootargs);
|
env_set("bootargs", newbootargs);
|
||||||
|
free(newbootargs);
|
||||||
|
|
||||||
if (os_data) {
|
if (os_data) {
|
||||||
if (image_get_magic(ihdr) == IH_MAGIC) {
|
if (image_get_magic(ihdr) == IH_MAGIC) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user