提交 397411e6 编写于 作者: P Pierre Ossman

mmc: Proper unclaim in mmc_block

Make sure we release the claim on the host even on failure.
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 fac88991
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册