[PATCH][MTD-UTILS] nanddump: fix badblock oob output
chris mcharg
chris.mcharg at gmail.com
Fri Mar 7 13:04:20 EST 2008
Hi,
Was looking over the nanddump code and it appears that the incorrect
buffer is being 0xffed when outputting badblock oob data.
I haven't actually run nanddump yet and so haven't tested, but it
seems simple enough so I've included the patch below.
Cheers,
Chris
----
--- a/nanddump.c
+++ b/nanddump.c
@@ -335,7 +335,7 @@ int main(int argc, char **argv)
continue;
if (badblock) {
- memset (readbuf, 0xff, meminfo.oobsize);
+ memset (oobbuf, 0xff, meminfo.oobsize);
} else {
/* Read OOB data and exit on failure */
oob.start = ofs;
More information about the linux-mtd
mailing list