[U-Boot] [PATCH] UBI: Fix size parsing in "ubi create"
Stefan Roese
sr at denx.de
Tue Dec 2 11:07:17 CET 2008
Signed-off-by: Stefan Roese <sr at denx.de>
---
common/cmd_ubi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/cmd_ubi.c b/common/cmd_ubi.c
index 495d71e..fd33a67 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 */
--
1.6.0.4
More information about the U-Boot
mailing list