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

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

Merge "msm: isp: fix for potentitial array out of bound access"

parents 37eae8f2 31e2a2f0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -618,6 +618,11 @@ static int msm_isp_set_dual_HW_master_slave_mode(
	}
	ISP_DBG("%s: vfe %d num_src %d\n", __func__, vfe_dev->pdev->id,
		dual_hw_ms_cmd->num_src);
	if (dual_hw_ms_cmd->num_src > VFE_SRC_MAX) {
		pr_err("%s: Error! Invalid num_src %d\n", __func__,
			dual_hw_ms_cmd->num_src);
		return -EINVAL;
	}
	/* This for loop is for non-primary intf to be marked with Master/Slave
	 * in order for frame id sync. But their timestamp is not saved.
	 * So no sof_info resource is allocated */