diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 5bcc324675eb7535c9e103cd473134122b83e376..c53601cf7457e89475885ab4f1f57870487129be 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -1008,6 +1008,9 @@ static int do_env_import(cmd_tbl_t *cmdtp, int flag, if (argc == 2) { size = simple_strtoul(argv[1], NULL, 16); + } else if (argc == 1 && chk) { + puts("## Error: external checksum format must pass size\n"); + return CMD_RET_FAILURE; } else { char *s = addr;