commit | 75efe7dc996ddb9835590b1a8970f19b5c4b1ade | [log] [tgz] |
---|---|---|
author | Dimitri John Ledkov <xnox@ubuntu.com> | Wed Apr 21 12:42:01 2021 +0100 |
committer | Ramon Fried <rfried.dev@gmail.com> | Fri Jun 18 11:29:17 2021 +0300 |
tree | 04c108a4eb6cb40360d8c608507ff6f37dc7e0be | |
parent | 82a3c9ef20d43d97416589854b4bbcb4c2450c24 [diff] |
cmd: pxe_utils: sysboot: fix crash if either board or soc are not set. If the environment does not have "soc" or "board" set, and fdtdir option is specified in extlinux.conf, the bootloader will crash whilst dereferencing a null pointer. Add a guard against null soc or board. Fixes a crash of qemu-riscv64_smode configuration, which does not have CONFIG_SYS_SOC defined. Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>