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

Commit 65273d68 authored by Terence Ho's avatar Terence Ho
Browse files

msm:camera: correct stats query out of boundary



fix one potential out of boundary query of stats info.

Change-Id: Ic3224f2f08e6dd2bb05a846d0300df251f9fb192
CRs-Fixed: 2041066
Signed-off-by: default avatarTerence Ho <terenceh@codeaurora.org>
parent e539a094
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -878,7 +878,7 @@ int msm_isp_update_stats_stream(struct vfe_device *vfe_dev, void *arg)
				&update_cmd->update_info[i];
		/* check array reference bounds */
		if (STATS_IDX(update_info->stream_handle)
			> vfe_dev->hw_info->stats_hw_info->num_stats_type) {
			>= vfe_dev->hw_info->stats_hw_info->num_stats_type) {
			pr_err("%s: stats idx %d out of bound!", __func__,
			STATS_IDX(update_info->stream_handle));
			return -EINVAL;