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

Commit 295106cf authored by bait_dispatcher_monitor_system's avatar bait_dispatcher_monitor_system Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera2: cpp: Check IOMMU status before processing frame"

parents 03560956 4d0727b7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1736,6 +1736,11 @@ static int msm_cpp_cfg_frame(struct cpp_device *cpp_dev,
		return -EINVAL;
	}

	if (cpp_dev->iommu_state != CPP_IOMMU_STATE_ATTACHED) {
		pr_info("IOMMU is not attached\n");
		return -EAGAIN;
	}

	in_phyaddr = msm_cpp_fetch_buffer_info(cpp_dev,
		&new_frame->input_buffer_info,
		((new_frame->input_buffer_info.identity >> 16) & 0xFFFF),