mmc_block: fix probe error cleanup bug
authorJarkko Lavinen <jarkko.lavinen@nokia.com>
Fri, 8 Jan 2010 22:42:59 +0000 (14:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 11 Jan 2010 17:34:06 +0000 (09:34 -0800)
commit0a74ff29b8dd8b748f8856352f9a9b5c6cc362cc
treea99376bf5affbb1a50ba7fde1b4e8a36ce765191
parent7d92df692994472cab6045bbd9d0e2c4afa4365f
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>
drivers/mmc/card/block.c