2006-05-24 08:20:48

by Pierre Ossman

[permalink] [raw]
Subject: [PATCH] [MMC] Fix premature use of md->disk

md->disk was being used in a debug message before it was allocated.

Signed-off-by: Pierre Ossman <[email protected]>
---

drivers/mmc/mmc_block.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/mmc_block.c b/drivers/mmc/mmc_block.c
index e39cc05..587458b 100644
--- a/drivers/mmc/mmc_block.c
+++ b/drivers/mmc/mmc_block.c
@@ -353,7 +353,7 @@ static struct mmc_blk_data *mmc_blk_allo
*/
printk(KERN_ERR "%s: unable to select block size for "
"writing (rb%u wb%u rp%u wp%u)\n",
- md->disk->disk_name,
+ mmc_card_id(card),
1 << card->csd.read_blkbits,
1 << card->csd.write_blkbits,
card->csd.read_partial,