mmc_block: fix probe error cleanup bug

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 <jarkko.lavinen@nokia.com>
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Cc: <linux-mmc@vger.kernel.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Jarkko Lavinen 2010-01-08 14:42:59 -08:00 committed by Linus Torvalds
parent 7d92df6929
commit 0a74ff29b8

View File

@ -618,6 +618,7 @@ static int mmc_blk_probe(struct mmc_card *card)
return 0;
out:
mmc_cleanup_queue(&md->queue);
mmc_blk_put(md);
return err;