Skip to contentSkip to conversation

Fix a bit/byte counting error in the MMC/SD code

PATCH In review Richard Purdie 2 participants 2 messages Aug 4, 2005 – Aug 5, 2005 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix a bit/byte counting error in the MMC/SD code

This fixes what looks like a bit/byte counting error in the MMC/SD code which was causing data corruption (in the -mm tree).

drivers/mmc/mmc.c +1 -1
Index: linux-2.6.12/drivers/mmc/mmc.c
===================================================================
@@ -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) {
#1 lore raw
Quoted 4 lines · Richard Purdie

This fixes what looks like a bit/byte counting error in the MMC/SD code which was causing data corruption (in the -mm tree).

Ooops... Must have been late in the evening. Sorry about that blunder.

Rgds
Pierre