From: Jarkko Lavinen Date: Fri, 8 Jan 2010 22:42:59 +0000 (-0800) Subject: mmc_block: fix probe error cleanup bug X-Git-Tag: v2.6.33-rc4~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a74ff29b8dd8b748f8856352f9a9b5c6cc362cc;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: Adrian Hunter Cc: Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 5988573..ee87911 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -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;