Skip to contentSkip to conversation

cmd/mtd.c: fix do_mtd_io doesn't support 64bit user address

PATCH In review [email protected] 2 participants 2 messages Jul 16 – Jul 28

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd/mtd.c: fix do_mtd_io doesn't support 64bit user address

From: Romain Caritey <[email protected]>

---
 cmd/mtd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
cmd/mtd.c +2 -2
index 7f25144098b..ed827accfb5 100644
@@ -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;
Signature · 1 line
2.47.3
#1 lore raw
Quoted 1 line · On Wed, 15 Jul 2026 16:28:54 -0700, [email protected] wrote:

Applied to u-boot/main, thanks!

[1/1] cmd/mtd.c: fix do_mtd_io doesn't support 64bit user address

      commit: a1ae6e971c3962f73257ee5c8535e108d869b24f
Signature · 1 line
Tom