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

Commit 79595a08 authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: cdm: correct the error check in cmd submit irq" into camera-kernel.lnx.3.1

parents 636d098f 6273e787
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -631,10 +631,13 @@ int cam_hw_cdm_submit_gen_irq(
	int rc;
	bool bit_wr_enable = false;

	if (core->bl_fifo[fifo_idx].bl_tag > 63) {
	if (core->bl_fifo[fifo_idx].bl_tag >
		(core->bl_fifo[fifo_idx].bl_depth - 1)) {
		CAM_ERR(CAM_CDM,
			"bl_tag invalid =%d",
			core->bl_fifo[fifo_idx].bl_tag);
			"Invalid bl_tag=%d bl_depth=%d fifo_idx=%d",
			core->bl_fifo[fifo_idx].bl_tag,
			core->bl_fifo[fifo_idx].bl_depth,
			fifo_idx);
		rc = -EINVAL;
		goto end;
	}