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

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

Merge "msm: camera_v2: Fix a return code issue in smmu mapping"

parents 5a2b05bb 8f3ca43c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -794,8 +794,9 @@ static int cam_smmu_map_buffer_and_add_to_list(int idx, int ion_fd,

	rc = msm_dma_map_sg_lazy(iommu_cb_set.cb_info[idx].dev, table->sgl,
			table->nents, dma_dir, buf);
	if (!rc) {
	if (rc != table->nents) {
		pr_err("Error: msm_dma_map_sg_lazy failed\n");
		rc = -ENOMEM;
		goto err_unmap_sg;
	}