From: Jon Ringle <jon@ringle.org>
To: linux-mtd@lists.infradead.org, dsaxena@mvista.com
Cc: Jon Ringle <jon@ringle.org>, dedekind1@gmail.com
Subject: [PATCH] [MTD] maps/ixp4xx: Fix reading from half-word boundary
Date: Wed, 13 Jan 2010 09:36:10 -0500 [thread overview]
Message-ID: <1263393370-3561-1-git-send-email-jon@ringle.org> (raw)
ixp4xx updates:
- Fix handling of reads that don't start on a half-word boundary.
Signed-off-by: Jon Ringle <jon@ringle.org>
---
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 7214b87..6b540a5 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;
}
--
1.6.5.rc2
next reply other threads:[~2010-01-13 14:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-13 14:36 Jon Ringle [this message]
2010-01-28 16:19 ` [PATCH] [MTD] maps/ixp4xx: Fix reading from half-word boundary Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1263393370-3561-1-git-send-email-jon@ringle.org \
--to=jon@ringle.org \
--cc=dedekind1@gmail.com \
--cc=dsaxena@mvista.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.