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

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

Merge "iommu: Fix bug in __msm_map_iommu_common()"

parents b94c031f f6a0a177
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -428,6 +428,11 @@ static int __msm_map_iommu_common(

	if (!iommu_meta) {
		iommu_meta = msm_iommu_meta_create(dma_buf, table, size);

		if (IS_ERR(iommu_meta)) {
			ret = PTR_ERR(iommu_meta);
			goto out;
		}
	} else {
		/*
		 * Drop the dma_buf reference here. We took the reference
@@ -479,7 +484,7 @@ static int __msm_map_iommu_common(
out_unlock:
	mutex_unlock(&iommu_meta->lock);
out:

	if (iommu_meta)
		msm_iommu_meta_put(iommu_meta);
	return ret;