From: Stefan Roese Date: Tue, 2 Dec 2008 09:53:47 +0000 (+0100) Subject: UBI: Fix size parsing in "ubi create" X-Git-Tag: v2009.01-rc1~9^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d2e05727fe4013f807ffa814dff0e75259a1db4;p=u-boot UBI: Fix size parsing in "ubi create" Signed-off-by: Stefan Roese --- diff --git a/common/cmd_ubi.c b/common/cmd_ubi.c index 495d71ec0a..fd33a67105 100644 --- a/common/cmd_ubi.c +++ b/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 */