summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-01-15 09:29:57 -0500
committerTom Rini <[email protected]>2024-01-15 09:29:57 -0500
commitb9631fe7817e18f04ef556516af28b736d688b7e (patch)
treeb104156461c105115cb4e4192cbb7812563cb4af /cmd
parent697758e7c81131da6db0e3b10515019fe3aca8c9 (diff)
parent4dfa08af79097d068d6657a4c77e7d474733b796 (diff)
Merge tag 'u-boot-nand-20240115' of https://source.denx.de/u-boot/custodians/u-boot-nand-flash
Pull request for u-boot-nand-20240115 The first patch is by Heinrich Schuchardt and fixes an integer overflow The following two patches are by Dario Binacchi and add arguments check to the nand_mtd_to_devnum() and nand_register() functions. The remaining patches are by Roger Quadros and include various fixes for the OMAP platform.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mtd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mtd.c b/cmd/mtd.c
index e63c011e791..9083a6840ac 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -77,7 +77,7 @@ static void mtd_dump_device_buf(struct mtd_info *mtd, u64 start_off,
if (has_pages) {
for (page = 0; page < npages; page++) {
- u64 data_off = page * mtd->writesize;
+ u64 data_off = (u64)page * mtd->writesize;
printf("\nDump %d data bytes from 0x%08llx:\n",
mtd->writesize, start_off + data_off);
@@ -85,7 +85,7 @@ static void mtd_dump_device_buf(struct mtd_info *mtd, u64 start_off,
mtd->writesize, start_off + data_off);
if (woob) {
- u64 oob_off = page * mtd->oobsize;
+ u64 oob_off = (u64)page * mtd->oobsize;
printf("Dump %d OOB bytes from page at 0x%08llx:\n",
mtd->oobsize, start_off + data_off);