]> err.no Git - linux-2.6/commitdiff
mmc: Proper unclaim in mmc_block
authorPierre Ossman <drzeus@drzeus.cx>
Tue, 30 Jan 2007 06:48:04 +0000 (07:48 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Sun, 4 Feb 2007 19:54:11 +0000 (20:54 +0100)
Make sure we release the claim on the host even on failure.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/mmc_block.c

index 19ccfed8a54f8b36178f3400c9a294bf15666f49..05ba8ace70e7801071a2a614ad4e9d74d13f1502 100644 (file)
@@ -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,