summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Caritey <[email protected]>2026-07-15 16:28:54 -0700
committerTom Rini <[email protected]>2026-07-28 12:30:55 -0600
commita1ae6e971c3962f73257ee5c8535e108d869b24f (patch)
tree2f6fcd803220d3bd23b436063e9c820ff3305ffc
parentcecee552a732500cf822c94014fdc56fddd1af4e (diff)
cmd/mtd.c: fix do_mtd_io doesn't support 64bit user address
Signed-off-by: Romain Caritey <[email protected]>
-rw-r--r--cmd/mtd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mtd.c b/cmd/mtd.c
index 7f25144098b..ed827accfb5 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -470,10 +470,10 @@ static int do_mtd_io(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
bool dump, read, raw, woob, benchmark, write_empty_pages, has_pages = false;
- u64 start_off, off, len, remaining, default_len, speed;
+ u64 start_off, off, len, remaining, default_len, speed, user_addr = 0;
unsigned long bench_start, bench_end;
struct mtd_oob_ops io_op = {};
- uint user_addr = 0, npages;
+ uint npages;
const char *cmd = argv[0];
struct mtd_info *mtd;
u32 oob_len;