Skip to content
Commit 75efe7dc authored by Dimitri John Ledkov's avatar Dimitri John Ledkov Committed by Ramon Fried
Browse files

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: default avatarDimitri John Ledkov <xnox@ubuntu.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent 82a3c9ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment