projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53a0ddb
)
boot: android: free newbootargs when done
author
Nicolas Belin
<nbelin@baylibre.com>
Tue, 17 Dec 2024 13:29:09 +0000
(14:29 +0100)
committer
Mattijs Korpershoek
<mkorpershoek@baylibre.com>
Wed, 18 Dec 2024 13:04:23 +0000
(14:04 +0100)
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>
boot/image-android.c
patch
|
blob
|
history
diff --git
a/boot/image-android.c
b/boot/image-android.c
index 57158280b41c6552c82838e21384d925d5f7cde4..362a5c7435a3a8bcf7b674b96e31069a91a892b5 100644
(file)
--- a/
boot/image-android.c
+++ b/
boot/image-android.c
@@
-322,6
+322,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) {