projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a83dc
)
cmd_fuse: return CMD_RET_FAILURE on error
author
Hector Palacios
<hector.palacios@digi.com>
Thu, 20 Nov 2014 08:27:42 +0000
(09:27 +0100)
committer
Tom Rini
<trini@ti.com>
Mon, 8 Dec 2014 14:35:43 +0000
(09:35 -0500)
Fuse drivers, like the mxs_ocotp.c, may return negative error codes but
the commands are only allowed to return CMD_RET_* enum values to the
shell, otherwise the following error appears:
"exit not allowed from main input shell."
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
common/cmd_fuse.c
patch
|
blob
|
history
diff --git
a/common/cmd_fuse.c
b/common/cmd_fuse.c
index abab9789b0df4f80c9b723ef0ad03ad04c132732..d4bc0f6c94a17a5e0084dc9ddd7fd5218a7badfc 100644
(file)
--- a/
common/cmd_fuse.c
+++ b/
common/cmd_fuse.c
@@
-128,7
+128,7
@@
static int do_fuse(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
err:
puts("ERROR\n");
- return
ret
;
+ return
CMD_RET_FAILURE
;
}
U_BOOT_CMD(