[PATCH 0/4] boot: android: rework the bootargs concatenation
Nicolas Belin
nbelin at baylibre.com
Wed Dec 11 14:53:23 CET 2024
Rework the bootargs concatenation logic to make the logic clearer
and address several issues such as:
- checking the value at the address kcmdline_extra instead of
checking the address value itself
- freeing the string that was malloced for the concatenation
- making sure to malloc the right amount of bytes for the concatenated
string, not forgetting the byte for the NULL termination
Signed-off-by: Nicolas Belin <nbelin at baylibre.com>
---
Nicolas Belin (4):
boot: android: fix extra command line support
boot: android: free newbootargs when done
boot: android: rework bootargs concatenation
boot: android: reorder the length calculation order
boot/image-android.c | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
---
base-commit: b841e559cd26ffcb20f22e8ee75debed9616c002
change-id: 20241211-fix-bootargs-concatenation-8b616c110b63
Best regards,
--
Nicolas Belin <nbelin at baylibre.com>
More information about the U-Boot
mailing list