mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
MX28: Fix MXSBOOT segfault if no params specified
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
bd2e27c043
commit
e364daf925
1 changed files with 3 additions and 0 deletions
|
@ -606,6 +606,9 @@ int parse_ops(int argc, char **argv)
|
|||
};
|
||||
int type;
|
||||
|
||||
if (argc < 4)
|
||||
return -1;
|
||||
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strncmp(argv[i], "-w", 2))
|
||||
type = PARAM_WRITE;
|
||||
|
|
Loading…
Reference in a new issue