]> git.dujemihanovic.xyz Git - u-boot.git/commit
boot: android: rework bootargs concatenation
authorNicolas Belin <nbelin@baylibre.com>
Tue, 17 Dec 2024 13:29:10 +0000 (14:29 +0100)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Wed, 18 Dec 2024 13:04:23 +0000 (14:04 +0100)
commit9e5fad0f792539ae4258bc116bf408bb6faf7e82
treea6ffac4ff643839fba128b16549f2e4fbbe1ca0f
parentfd8b44a81be55b33c7defbe96a1ddd79ed286eb4
boot: android: rework bootargs concatenation

Rework the bootargs concatenation allocating more accurately
the length that is needed.
Do not forget an extra byte for the null termination byte as,
in some cases, the allocation was 1 byte short.

Fixes: 86f4695b ("image: Fix Android boot image support")
Signed-off-by: Nicolas Belin <nbelin@baylibre.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20241217-fix-bootargs-concatenation-v2-3-b2fd7cf4e130@baylibre.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
boot/image-android.c