Explorar el Código

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>
Pierre Ossman hace 18 años
padre
commit
397411e67f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      drivers/mmc/mmc_block.c

+ 2 - 1
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,