Aaron Kling 4e599aa73a boot: android: Check kcmdline's for NULL in android_image_get_kernel()
kcmdline and kcmdline_extra strings can be NULL. In that case, we still
read the content from 0x00000 and pass that to the kernel, which is
completely wrong.

Fix android_image_get_kernel() to check for NULL before checking if
they are empty strings.

Fixes: 53a0ddb6d3be ("boot: android: fix extra command line support")
Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
Reviewed-by: Nicolas Belin <nbelin@baylibre.com>
Reviewed-by: Julien Masson <jmasson@baylibre.com>
Tested-by: Sam Day <me@samcday.com>
Link: https://lore.kernel.org/r/20250113-kcmdline-extra-fix-v1-1-03cc9c039159@baylibre.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2025-01-23 15:19:37 +01:00
..
2024-12-30 13:21:55 -06:00
2024-10-23 06:52:38 +02:00
2024-10-18 14:10:22 -06:00
2022-01-19 18:11:34 +01:00
2024-12-30 13:21:55 -06:00
2021-11-11 19:01:56 -05:00
2024-07-05 13:57:02 -06:00
2024-12-27 15:16:10 -06:00
2024-10-18 14:10:22 -06:00
2024-11-14 18:14:06 -06:00
2025-01-22 09:47:50 -06:00
2025-01-22 09:47:49 -06:00