mmc_block: fix probe error cleanup bug
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.
Signed-off-by Jarkko Lavinen <[email protected]>
Signed-off-by Adrian Hunter <[email protected]>
Cc <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
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
@@ -618,6 +618,7 @@ static int mmc_blk_probe(struct mmc_cardreturn 0 ; out: +mmc_cleanup_queue (&md->queue);mmc_blk_put (md);return err;
_