Skip to content

Commit

Permalink
mmc: Proper unclaim in mmc_block
Browse files Browse the repository at this point in the history
Make sure we release the claim on the host even on failure.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Pierre Ossman committed Feb 4, 2007
1 parent fac8899 commit 397411e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mmc/mmc_block.c
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 397411e

Please sign in to comment.