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>
This commit is contained in:
parent
3fe677ea14
commit
1e5451c60d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue