diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-01-30 07:48:04 +0100 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-02-04 20:54:11 +0100 |
commit | 397411e67ff473c36161d93e4c7ac6dc53e23503 (patch) | |
tree | cf652e902328fe6d4b4b5617bf915871b842cd73 /drivers/mmc | |
parent | fac8899129a0490020a0734cc84c1a94ac72c7e1 (diff) | |
download | linux-397411e67ff473c36161d93e4c7ac6dc53e23503.tar.gz linux-397411e67ff473c36161d93e4c7ac6dc53e23503.tar.bz2 linux-397411e67ff473c36161d93e4c7ac6dc53e23503.zip |
mmc: Proper unclaim in mmc_block
Make sure we release the claim on the host even on failure.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/mmc_block.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/mmc_block.c b/drivers/mmc/mmc_block.c index 19ccfed8a54f..05ba8ace70e7 100644 --- a/drivers/mmc/mmc_block.c +++ b/drivers/mmc/mmc_block.c @@ -379,9 +379,10 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req) spin_unlock_irq(&md->lock); } +flush_queue: + mmc_card_release_host(card); -flush_queue: spin_lock_irq(&md->lock); while (ret) { ret = end_that_request_chunk(req, 0, |