From: Hector Palacios Date: Thu, 20 Nov 2014 08:27:42 +0000 (+0100) Subject: cmd_fuse: return CMD_RET_FAILURE on error X-Git-Tag: v2015.01-rc3~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=814b661448d50462c37232a456d3d09450fd9f72;p=u-boot cmd_fuse: return CMD_RET_FAILURE on error 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 Reviewed-by: Benoît Thébaudeau --- diff --git a/common/cmd_fuse.c b/common/cmd_fuse.c index abab9789b0..d4bc0f6c94 100644 --- 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(