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

Commit d8574980 authored by Fei Zhang's avatar Fei Zhang Committed by Gerrit - the friendly Code Review server
Browse files

msm:camera: correct stats query out of boundary



fix one potential out of boundary query of stats info.

Change-Id: I13e4bf8802fcce529f9268c272e4727619d5ad8f
Signed-off-by: default avatarFei Zhang <feizhang@codeaurora.org>
parent c6b2aed4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -888,7 +888,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;