Skip to content

Commit

Permalink
mtd: ixp4xx: fix reading from half-word boundary
Browse files Browse the repository at this point in the history
Fix handling of reads that don't start on a half-word boundary.

Signed-off-by: Jon Ringle <jon@ringle.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Jon Ringle authored and David Woodhouse committed Feb 25, 2010
1 parent 9c14b15 commit 53f2b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/maps/ixp4xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 53f2b1c

Please sign in to comment.