]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc_block: fix probe error cleanup bug
authorJarkko Lavinen <jarkko.lavinen@nokia.com>
Fri, 8 Jan 2010 22:42:59 +0000 (14:42 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jan 2010 18:19:35 +0000 (10:19 -0800)
commit0c74f45acfacc220adfa9e035ffeb3d5e8f9f0d8
treee0217d1ac2ceee2586bbec2ed09949d9bad0b8b8
parent0798abf9dc8157145d7136f751b6a16aaac1b1e8
mmc_block: fix probe error cleanup bug

commit 0a74ff29b8dd8b748f8856352f9a9b5c6cc362cc upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mmc/card/block.c