maps/ixp4xx: Fix reading from half-word boundary
PATCH 1/1 maps/ixp4xx: Fix reading from half-word boundary
ixp4xx updates:
- Fix handling of reads that don't start on a half-word boundary.
Signed-off-by Jon Ringle <[email protected]>
--- drivers/mtd/maps/ixp4xx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/maps/ixp4xx.c +2 -2
@@ -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; }
Signature · 1 line
1.6.5.rc2
Quoted 5 lines · Jon Ringle
ixp4xx updates:
- Fix handling of reads that don't start on a half-word boundary.Signed-off-by Jon Ringle <[email protected]>
I've pushed this patch to my l2-mtd-2.6.git/master tree
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)