Merge "msm📷 correct stats query out of boundary" into dev/msm-4.4-8996au

This commit is contained in:
Linux Build Service Account 2017-07-07 12:04:01 -07:00 committed by Gerrit - the friendly Code Review server
commit 87dfd9682c

View file

@ -1263,7 +1263,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;