]> git.sur5r.net Git - u-boot/commitdiff
UBI: Fix size parsing in "ubi create"
authorStefan Roese <sr@denx.de>
Tue, 2 Dec 2008 09:53:47 +0000 (10:53 +0100)
committerStefan Roese <sr@denx.de>
Tue, 9 Dec 2008 09:07:41 +0000 (10:07 +0100)
Signed-off-by: Stefan Roese <sr@denx.de>
common/cmd_ubi.c

index 495d71ec0a11b596743cd93d4358c4778b0942e3..fd33a6710589c47bf65af33ced1ba749b234f2d4 100644 (file)
@@ -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 */