[MMC] Fix premature use of md->disk
authorPierre Ossman <drzeus@drzeus.cx>
Wed, 24 May 2006 08:20:45 +0000 (10:20 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 24 May 2006 15:35:31 +0000 (08:35 -0700)
md->disk was being used in a debug message before it was allocated.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mmc/mmc_block.c

index e39cc05c64c258536cae1ece7c88d24969e036cb..587458b370b9a9d71c817d0375d140847f01c505 100644 (file)
@@ -353,7 +353,7 @@ static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card)
                         */
                        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,