
17 Oct
2022
17 Oct
'22
11:30 p.m.
Functions which implement commands must return a CMD_RET_... error code. At present bootm can return a negative errno value in some cases, thus causing strange behaviour such as trying to exit the shell and printing usage information.
Fix this by returning the correct value.
Signed-off-by: Simon Glass sjg@chromium.org ---
(no changes since v1)
cmd/bootm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
Applied to u-boot-dm, thanks!