mtd: onenand_base: onenand_verify bugfix for writepage non-aligned address
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Tue, 8 Feb 2011 10:02:42 +0000 (12:02 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:22:45 +0000 (14:22 +0000)
commite6da85685b2dec1e69e58366c22d1f883d6da575
tree32ff27bcf6b566098a4569e1f7c1a84b351ba5d7
parentb085058fe556328443f982d892c9657b3aff9d4a
mtd: onenand_base: onenand_verify bugfix for writepage non-aligned address

In onenand_verify function the address can be writepage non-aligned.
When a page is read for comparing the right offset should be used
for "this->verify_buf" to get the right matching with compared
"buf" buffer.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/onenand/onenand_base.c