* [PATCH] [MMC] Fix premature use of md->disk
@ 2006-05-24 8:20 Pierre Ossman
0 siblings, 0 replies; only message in thread
From: Pierre Ossman @ 2006-05-24 8:20 UTC (permalink / raw)
To: torvalds; +Cc: Pierre Ossman, linux-kernel, rmk+lkml
md->disk was being used in a debug message before it was allocated.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
---
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-24 8:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-24 8:20 [PATCH] [MMC] Fix premature use of md->disk Pierre Ossman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®