diff options
author | Aaron Kling <webgeek1234@gmail.com> | 2025-01-13 10:11:45 +0100 |
---|---|---|
committer | Mattijs Korpershoek <mkorpershoek@baylibre.com> | 2025-01-23 15:19:37 +0100 |
commit | 4e599aa73a386dd1ba5091937ef2fc388d01ddd2 (patch) | |
tree | 93189f89ea8f2a2ccc37b0a7b68fd8cc787eeade /common/bloblist.c | |
parent | a3b71cc6f5cc74d4edc5808790a3d2999ea3f7fe (diff) |
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>
Diffstat (limited to 'common/bloblist.c')
0 files changed, 0 insertions, 0 deletions