Skip to contentSkip to conversation

mmc_block: fix probe error cleanup bug

PATCH New [email protected] 1 participant 1 message Jan 8, 2010 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 20/42 mmc_block: fix probe error cleanup bug

From: Jarkko Lavinen <[email protected]>

If mmc_blk_set_blksize() fails mmc_blk_probe() the request queue and its thread have been set up and they need to be shut down properly before putting the disk.

---

 drivers/mmc/card/block.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mmc/card/block.c renamed from drivers/mmc/card/block.c~mmc_block-fix-probe-error-cleanup-bug +1 -0
diff -puN drivers/mmc/card/block.c~mmc_block-fix-probe-error-cleanup-bug drivers/mmc/card/block.c
@@ -618,6 +618,7 @@ static int mmc_blk_probe(struct mmc_card
 	return 0;
 
  out:
+	mmc_cleanup_queue(&md->queue);
 	mmc_blk_put(md);
 
 	return err;

_