Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82c2d2bb authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: cmdq_hci: Fix key index refcnt issue with metadata encryption"

parents b69cd3f2 215eaf8b
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -888,6 +888,7 @@ static void cmdq_finish_data(struct mmc_host *mmc, unsigned int tag)

	cmdq_runtime_pm_put(cq_host);

	if (!(mrq->cmdq_req->cmdq_req_flags & DCMD)) {
		if (cq_host->ops->crypto_cfg_end) {
			err = cq_host->ops->crypto_cfg_end(mmc, mrq);
			if (err) {
@@ -895,6 +896,7 @@ static void cmdq_finish_data(struct mmc_host *mmc, unsigned int tag)
						mmc_hostname(mmc), err, tag);
			}
		}
	}
	if (!(cq_host->caps & CMDQ_CAP_CRYPTO_SUPPORT) &&
			cq_host->ops->crypto_cfg_reset)
		cq_host->ops->crypto_cfg_reset(mmc, tag);