Selaa lähdekoodia

UBI: Fix size parsing in "ubi create"

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese 16 vuotta sitten
vanhempi
commit
2d2e05727f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      common/cmd_ubi.c

+ 1 - 1
common/cmd_ubi.c

@@ -546,7 +546,7 @@ static int do_ubi(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 		}
 		}
 		/* E.g., create volume size */
 		/* E.g., create volume size */
 		if (argc == 4) {
 		if (argc == 4) {
-			addr = simple_strtoul(argv[3], NULL, 16);
+			size = simple_strtoul(argv[3], NULL, 16);
 			argc--;
 			argc--;
 		}
 		}
 		/* Use maximum available size */
 		/* Use maximum available size */