mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Adrian Hunter <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7d92df6929
commit
0a74ff29b8
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue