public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <rpurdie@rpsys.net>
To: Andrew Morton <akpm@osdl.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Russell King <rmk@arm.linux.org.uk>,
	Pierre Ossman <drzeus@drzeus.cx>
Subject: [patch] Fix a bit/byte counting error in the MMC/SD code
Date: Thu, 04 Aug 2005 22:40:40 +0100	[thread overview]
Message-ID: <1123191640.8987.68.camel@localhost.localdomain> (raw)

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) {


             reply	other threads:[~2005-08-04 21:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-04 21:40 Richard Purdie [this message]
2005-08-05 11:02 ` [patch] Fix a bit/byte counting error in the MMC/SD code Pierre Ossman

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=1123191640.8987.68.camel@localhost.localdomain \
    --to=rpurdie@rpsys.net \
    --cc=akpm@osdl.org \
    --cc=drzeus@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox