mtd: ixp4xx: fix reading from half-word boundary
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Feb 25 07:59:03 EST 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=53f2b1c86a1fa1414be93571062ac4c263fa9fbc
Commit: 53f2b1c86a1fa1414be93571062ac4c263fa9fbc
Parent: 9c14b153e6af1301f022d34f1f63888f333e3ef5
Author: Jon Ringle <jon at ringle.org>
AuthorDate: Wed Jan 13 09:36:10 2010 -0500
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Feb 25 11:28:56 2010 +0000
mtd: ixp4xx: fix reading from half-word boundary
Fix handling of reads that don't start on a half-word boundary.
Signed-off-by: Jon Ringle <jon at ringle.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/maps/ixp4xx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c
index 7b05152..7513d90 100644
--- a/drivers/mtd/maps/ixp4xx.c
+++ b/drivers/mtd/maps/ixp4xx.c
@@ -107,8 +107,8 @@ static void ixp4xx_copy_from(struct map_info *map, void *to,
return;
if (from & 1) {
- *dest++ = BYTE1(flash_read16(src));
- src++;
+ *dest++ = BYTE1(flash_read16(src-1));
+ src++;
--len;
}
More information about the linux-mtd-cvs
mailing list