summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaya Erez <merez@codeaurora.org>2015-02-12 20:37:31 +0200
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:26:12 -0700
commit1e5451c60daddd58d3b6f200d623debaf2ded069 (patch)
tree09617d939dbedde8d909dfe89c7d2dc25efb9226
parent3fe677ea14bf7984d15757743383d4c2a61fc7f6 (diff)
mmc: card: fix asymmetric claim host in mmc_blk_ioctl_rpmb_cmd
On kernel-3.14 mmc_claim_host is replaced by mmc_get_card to also call pm_runtime_get_sync. mmc_blk_ioctl_rpmb_cmd has asymmetric claim and release as mmc_claim_host was used to get the lock, but mmc_put_card was used for the release. To fix this and prevent bad counter of runtime PM, mmc_claim_host should be replaced with mmc_get_card. Change-Id: I7c2218623fddfbeed0489aed330c9fe6e8bc5338 Signed-off-by: Maya Erez <merez@codeaurora.org>
-rw-r--r--drivers/mmc/card/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index f35cb71baede..31e028cfff80 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -778,7 +778,7 @@ static int mmc_blk_ioctl_rpmb_cmd(struct block_device *bdev,
goto idata_free;
}
- mmc_claim_host(card->host);
+ mmc_get_card(card);
err = mmc_blk_part_switch(card, md);
if (err)