Skip to contentSkip to conversation

MMC: fix bug - SDHC card capacity not correct

PATCH Applied Bryan Wu 2 participants 2 messages Feb 5, 2009 – Feb 18, 2009 MMC, SD and SDIO

lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 MMC: fix bug - SDHC card capacity not correct

From: Yi Li <[email protected]>

---
 drivers/mmc/card/block.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/card/block.c +1 -1
index 45b1f43..513eb09 100644
@@ -584,7 +584,7 @@ static int mmc_blk_probe(struct mmc_card *card)
 	if (err)
 		goto out;
 
-	string_get_size(get_capacity(md->disk) << 9, STRING_UNITS_2,
+	string_get_size((u64)get_capacity(md->disk) << 9, STRING_UNITS_2,
 			cap_str, sizeof(cap_str));
 	printk(KERN_INFO "%s: %s %s %s %s\n",
 		md->disk->disk_name, mmc_card_id(card), mmc_card_name(card),
Signature · 1 line
1.5.6.3
#1 lore raw
Quoted 5 lines · On Thu, 5 Feb 2009 15:31:57 +0800 Bryan Wu <[email protected]> wrote:

From: Yi Li <[email protected]>

---

Queued, thanks.

Signature · 9 lines
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  rdesktop, core developer          http://www.rdesktop.org

  WARNING: This correspondence is being monitored by the
  Swedish government. Make sure your server uses encryption
  for SMTP traffic and consider using PGP for end-to-end
  encryption.