mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02: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:
committed by
Mattijs Korpershoek
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) {
|
||||||
|
Reference in New Issue
Block a user