Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51c40327 authored by Pierre Ossman's avatar Pierre Ossman Committed by Linus Torvalds
Browse files

[MMC] Fix premature use of md->disk



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

Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 387e2b04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,