Re: [PATCH] cmd: host: return value of do_host_bind()

28 Jul
2020
28 Jul
'20
8:57 p.m.
On Fri, 24 Jul 2020 at 00:30, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
When trying to bind to a non-existent file the following output is displayed:
=> host bind 0 non_existent Failed to access host backing file 'non_existent' exit not allowed from main input shell.
The last line is quite unexpected and due to an incorrect return value.
If do_host_bind() fails, return CMD_RET_FAILURE (= 1).
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
cmd/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-dm, thanks!
1751
Age (days ago)
1751
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Glass