]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_dfu.c
sdhci: Add sdhci support for spear devices
[u-boot] / common / cmd_dfu.c
index 327c738af795d250d3a824349cad4cdac84454b9..83ef32497a865bf63586d024c54de07bea62e515 100644 (file)
@@ -50,7 +50,7 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        if (ret)
                return CMD_RET_FAILURE;
 
-       if (strcmp(argv[3], "list") == 0) {
+       if (argc > 3 && strcmp(argv[3], "list") == 0) {
                dfu_show_entities();
                goto done;
        }