aboutsummaryrefslogtreecommitdiff
path: root/nand-utils
diff options
context:
space:
mode:
Diffstat (limited to 'nand-utils')
-rw-r--r--nand-utils/nanddump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nand-utils/nanddump.c b/nand-utils/nanddump.c
index 346af1e..a3e6e92 100644
--- a/nand-utils/nanddump.c
+++ b/nand-utils/nanddump.c
@@ -458,7 +458,7 @@ int main(int argc, char * const argv[])
/* skip bad block, increase end_addr */
if (bb_method == skipbad) {
end_addr += mtd.eb_size;
- ofs += mtd.eb_size - bs;
+ ofs += mtd.eb_size - mtd.min_io_size;
if (end_addr > mtd.size)
end_addr = mtd.size;
continue;