Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53f2b1c8 authored by Jon Ringle's avatar Jon Ringle Committed by David Woodhouse
Browse files

mtd: ixp4xx: fix reading from half-word boundary



Fix handling of reads that don't start on a half-word boundary.

Signed-off-by: default avatarJon Ringle <jon@ringle.org>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 9c14b153
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ static void ixp4xx_copy_from(struct map_info *map, void *to,
		return;

	if (from & 1) {
		*dest++ = BYTE1(flash_read16(src));
		*dest++ = BYTE1(flash_read16(src-1));
		src++;
		--len;
	}