summaryrefslogtreecommitdiff
path: root/packages/mtd/mtd-utils/fix-ignoreerrors-20060131.patch
blob: 8266a37c46c52c097cc2fa30a343a2c2a0110f95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- mtd/util/nanddump.c.orig	2006-01-30 21:19:22.000000000 +0100
+++ mtd/util/nanddump.c	2006-01-30 21:19:24.000000000 +0100
@@ -224,7 +224,7 @@
 			}
 		}
 
-		if (badblock) {
+		if (badblock && !ignoreerrors) {
 			if (omitbad)
 				continue;
 			memset (readbuf, 0xff, bs);
@@ -259,7 +259,7 @@
 		if (omitoob)
 			continue;
 
-		if (badblock) {
+		if (badblock && !ignoreerrors) {
 			memset (readbuf, 0xff, meminfo.oobsize);
 		} else {
 			/* Read OOB data and exit on failure */