u-boot/cmd
Dimitri John Ledkov 75efe7dc99 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>
2021-06-18 11:29:17 +03:00
..
arm
broadcom
mvebu cmd: mvebu: Rename rx_training to mvebu_comphy_rx_training 2021-05-16 06:48:45 +02:00
riscv cmd/exception: support ebreak exception on RISC-V 2021-05-05 16:13:12 +08:00
sandbox
ti common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
x86 x86: Correct regwidth prompt in cbsysinfo 2021-05-10 13:56:12 +08:00
.gitignore
ab_select.c part: Support getting whole disk from part_get_info_by_dev_and_name_or_num 2021-02-26 15:30:55 +01:00
abootimg.c
acpi.c cmd: Add missing check for CONFIG_SYS_LONGHELP 2021-03-27 15:04:30 +13:00
adc.c
addrmap.c cmd: Add a command to display the address map 2021-03-05 10:25:43 +05:30
adtimg.c
aes.c
armflash.c
avb.c
axi.c
bcb.c cmd: bcb: Add support for processing const string literals in bcb_set() 2021-01-31 14:08:56 +01:00
bdinfo.c Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
bedbug.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bind.c
binop.c
blk_common.c
blkcache.c
blob.c crypto: Add blob command support for i.MX8M platforms 2021-04-08 09:18:29 +02:00
bloblist.c cmd: Add missing check for CONFIG_SYS_LONGHELP 2021-03-27 15:04:30 +13:00
bmp.c
boot.c sysreset: provide type of reset in do_reset cmd 2021-04-20 07:31:12 -04:00
bootcount.c
bootefi.c efi_loader: Replace config option for initrd loading 2021-03-25 20:14:26 +01:00
booti.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bootm.c image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
bootmenu.c bootmenu: Allow to quit it via ESC/CTRL+C 2021-01-16 14:49:09 -05:00
bootstage.c
bootz.c
btrfs.c
button.c
cache.c
cbfs.c
clk.c
clone.c
cls.c
config.c
conitrace.c
console.c
cpu.c
cramfs.c
cros_ec.c cros_ec: Show events in human-readable form 2021-01-30 14:25:41 -07:00
dataflash_mmc_mux.c
date.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
demo.c
dfu.c cmd: dfu: Propagate error if dfu gadget fails 2021-04-23 08:45:55 +02:00
diag.c
disk.c image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
dm.c
echo.c cmd: change suppress newline in echo command 2021-01-25 01:15:33 +01:00
eeprom.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
efi.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
efidebug.c efi_loader: simplify accessing variables 2021-05-25 13:06:58 +02:00
elf.c
ethsw.c
exit.c cmd: exit: Fix return value 2021-04-12 17:45:40 -04:00
ext2.c
ext4.c
extension_board.c cmd: add support for a new "extension" command 2021-05-13 13:09:05 -04:00
fastboot.c
fat.c
fdt.c fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c 2021-05-13 07:19:34 -04:00
flash.c
fpga.c image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
fpgad.c
fs.c
fs_uuid.c
fuse.c
gettime.c
gpio.c
gpt.c cmd: gpt: Add option to write GPT partitions to environment variable 2021-05-04 12:52:46 -04:00
hash.c
help.c
host.c sandbox: Provide a way to bind fixed/removeable devices 2021-03-27 15:04:31 +13:00
i2c.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ide.c
ini.c
io.c
iotrace.c
irq.c
itest.c
jffs2.c
Kconfig cmd: Add dependency for ums command 2021-06-09 00:13:26 +02:00
led.c
legacy-mtd-utils.c
legacy-mtd-utils.h
legacy_led.c
license.c
load.c cmd/load: support uploading EFI binary via UART 2021-03-25 20:12:49 +01:00
log.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
lsblk.c
lzmadec.c
mac.c
Makefile cmd: add support for a new "extension" command 2021-05-13 13:09:05 -04:00
mbr.c
md5sum.c
mdio.c
mem.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mfsl.c
mii.c
misc.c
mmc.c cmd: mmc: check whether bootbus's arguments is valid or not 2021-04-06 18:08:26 +08:00
mp.c
mtd.c
mtdparts.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mux.c
nand.c image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
net.c
nvedit.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
nvedit_efi.c
nvme.c
onenand.c
optee_rpmb.c
osd.c
panic.c
part.c
pcap.c
pci.c
pinmux.c
pmc.c
pmic.c
pstore.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pvblock.c
pwm.c cmd: pwm: Rework argc sanity checking 2021-02-24 16:51:48 -05:00
pxe.c
pxe_utils.c cmd: pxe_utils: sysboot: fix crash if either board or soc are not set. 2021-06-18 11:29:17 +03:00
pxe_utils.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
qfw.c x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
read.c
reginfo.c
regulator.c
reiser.c
remoteproc.c
rng.c
rockusb.c
rtc.c
sata.c
sb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
scp03.c cmd: SCP03: enable and provision command 2021-03-13 13:14:52 -05:00
scsi.c
setexpr.c
sf.c cmd: sf: Print error on test failure 2021-02-26 15:48:00 +05:30
sha1sum.c
sleep.c cmd: misc: Fix return value for the sleep command 2021-01-27 17:07:48 -05:00
smccc.c
sound.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
source.c image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
spi.c
spl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sqfs.c
stackprot_test.c stackprot: Make our test a bit more complex 2021-05-24 14:23:01 -04:00
strings.c
sysboot.c
terminal.c terminal: only serial_reinit_all if available 2021-04-12 17:44:55 -04:00
test.c
thordown.c thor: add support for the dfu_alt_info reintialization from the flashed script 2021-01-31 14:08:56 +01:00
time.c
timer.c
tlv_eeprom.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tpm-common.c
tpm-user-utils.h
tpm-v1.c tpm: Switch TPMv1 over to use the new API 2021-03-02 15:53:37 -05:00
tpm-v2.c
tpm_test.c tpm: Switch TPMv1 over to use the new API 2021-03-02 15:53:37 -05:00
trace.c
tsi148.c
ubi.c
ubifs.c
ufs.c
universe.c
unlz4.c
unzip.c
usb.c
usb_gadget_sdp.c
usb_mass_storage.c cmd: usb_mass_storage: show device interface name 2021-01-31 14:08:56 +01:00
version.c x86: Make coreboot sysinfo available to any x86 board 2021-03-27 13:59:37 +13:00
virtio.c
w1.c
wdt.c
wol.c
ximg.c image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
yaffs2.c
zfs.c
zip.c