Эх сурвалжийг харах

UBI: Fix size parsing in "ubi create"

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese 16 жил өмнө
parent
commit
2d2e05727f
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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 */
 		if (argc == 4) {
-			addr = simple_strtoul(argv[3], NULL, 16);
+			size = simple_strtoul(argv[3], NULL, 16);
 			argc--;
 		}
 		/* Use maximum available size */