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

Commit 58f95898 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu: arm-smmu: Correct decrement of s2cr use count"

parents 7e2606f7 2eb31363
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3321,8 +3321,7 @@ static int arm_smmu_alloc_cb(struct iommu_domain *domain,
	}

	for (i = 0; i < smmu->num_mapping_groups; i++) {
		if (smmu->s2crs[i].cbndx == cb) {
			smmu->s2crs[i].cbndx = 0;
		if (smmu->s2crs[i].cb_handoff && smmu->s2crs[i].cbndx == cb) {
			smmu->s2crs[i].cb_handoff = false;
			smmu->s2crs[i].count -= 1;
		}