]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/mxsboot.c
tools: checkstack.pl from Linux added to tools
[karo-tx-uboot.git] / tools / mxsboot.c
index 176753d2ce07078dc1fe053b70539ab9c45822bd..8246831d8ef76571c539d90d9ce5014134b33789 100644 (file)
@@ -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;