* [patch] Fix a bit/byte counting error in the MMC/SD code
@ 2005-08-04 21:40 Richard Purdie
2005-08-05 11:02 ` Pierre Ossman
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2005-08-04 21:40 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, Russell King, Pierre Ossman
This fixes what looks like a bit/byte counting error in the MMC/SD code
which was causing data corruption (in the -mm tree).
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Index: linux-2.6.12/drivers/mmc/mmc.c
===================================================================
--- linux-2.6.12.orig/drivers/mmc/mmc.c 2005-08-04 22:27:44.000000000 +0100
+++ linux-2.6.12/drivers/mmc/mmc.c 2005-08-04 22:30:02.000000000 +0100
@@ -923,7 +923,7 @@
mrq.cmd = &cmd;
mrq.data = &data;
- sg_init_one(&sg, (u8*)card->raw_scr, 64);
+ sg_init_one(&sg, (u8*)card->raw_scr, 8);
err = mmc_wait_for_req(host, &mrq);
if (err != MMC_ERR_NONE) {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-05 11:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-04 21:40 [patch] Fix a bit/byte counting error in the MMC/SD code Richard Purdie
2005-08-05 11:02 ` Pierre Ossman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox