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> (cherry picked from commitfd8b44a81b)
This commit is contained in:
committed by
Simon Glass
parent
e342e46bb7
commit
ec3cca0ae1
@@ -367,6 +367,7 @@ int android_image_get_kernel(const void *hdr,
|
||||
}
|
||||
|
||||
env_set("bootargs", newbootargs);
|
||||
free(newbootargs);
|
||||
|
||||
if (os_data) {
|
||||
if (image_get_magic(ihdr) == IH_MAGIC) {
|
||||
|
||||
Reference in New Issue
Block a user