]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: sysboot: null check filename
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 18 Mar 2024 23:16:36 +0000 (23:16 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 10 Apr 2024 15:26:00 +0000 (09:26 -0600)
commitae8e1d5aa46034963bca28fb07dac76970f718fe
tree69d3c78f88f5ec02b4678a76f79cca33db0b0e4f
parent4b36f01201bfb62aba2669230436e5012dc60533
cmd: sysboot: null check filename

Currently if ${bootfile} is unset and sysboot is invoked with no
filename specified then U-Boot will crash will a null-pointer
dereference. Add the missing check and a matching error print.

Fixes: 993c912d304d ("cmd: sysboot: Create a sysboot command dedicated file")
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
cmd/sysboot.c