]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[MTD] mtd_dataflash: Incorrect compare-after-write check
authorAndrew Victor <andrew@sanpeople.com>
Mon, 19 Nov 2007 13:37:23 +0000 (15:37 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 28 Nov 2007 11:55:32 +0000 (11:55 +0000)
commitcccb45d4b34728d33638085435f8fdc0a83e0c00
tree78dcc93509877d6f8ff79040631e49880aed3501
parentc2056e1e1ddcca8d43e89543e1795e4457f5d1e9
[MTD] mtd_dataflash: Incorrect compare-after-write check

After writing to a Dataflash page, the built-in compare operation is
used to check that the page was successfully written.  A logic bug in
checking the results of the comparison currently causes the compare to
never fail.

This bug was originally in the legacy at91_dataflash.c driver.

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/devices/mtd_dataflash.c