* [patch 20/42] mmc_block: fix probe error cleanup bug
@ 2010-01-08 22:42 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2010-01-08 22:42 UTC (permalink / raw)
To: torvalds; +Cc: akpm, jarkko.lavinen, adrian.hunter, linux-mmc, stable
From: Jarkko Lavinen <jarkko.lavinen@nokia.com>
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>
---
drivers/mmc/card/block.c | 1 +
1 file changed, 1 insertion(+)
diff -puN drivers/mmc/card/block.c~mmc_block-fix-probe-error-cleanup-bug drivers/mmc/card/block.c
--- a/drivers/mmc/card/block.c~mmc_block-fix-probe-error-cleanup-bug
+++ a/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;
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-08 22:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08 22:42 [patch 20/42] mmc_block: fix probe error cleanup bug akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox