Skip to contentSkip to conversation

UBI: Fix size parsing in "ubi create"

PATCH New Stefan Roese 1 participant 1 message Dec 2, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 UBI: Fix size parsing in "ubi create"

---
 common/cmd_ubi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_ubi.c +1 -1
index 495d71e..fd33a67 100644
@@ -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 */
Signature · 1 line
1.6.0.4