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

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

Merge "mdp3: Prevent deref of invalid pointer that contains err code"

parents 3ed9e151 ee144bbe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1454,7 +1454,9 @@ int mdp3_self_map_iommu(struct ion_client *client, struct ion_handle *handle,
			ret = 0;
		} else {
			ret = PTR_ERR(iommu_meta);
			goto out_unlock;
			mutex_unlock(&mdp3_res->iommu_lock);
			pr_err("%s: meta_create failed err=%d", __func__, ret);
			return ret;
		}
	} else {
		if (iommu_meta->flags != iommu_flags) {