Merge "msm📷 correct stats query out of boundary"

This commit is contained in:
Linux Build Service Account 2017-06-22 07:40:27 -07:00 committed by Gerrit - the friendly Code Review server
commit 0ae9c77a8c

View file

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