mmc_block: fix probe error cleanup bug
authorJarkko Lavinen <jarkko.lavinen@nokia.com>
Fri, 8 Jan 2010 22:42:59 +0000 (14:42 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:08:38 +0000 (15:08 -0800)
commit28967844a184d9fe5ca613684c7f5065b616194f
tree189ab5f1f386612e3d3622558aab12641c01234b
parent10cd61b99858ac55ff0a2674a416df01eb048165
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>
Signed-off-by: San Mehat <san@google.com>
drivers/mmc/card/block.c