summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-07-07 12:04:01 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-07 12:04:01 -0700
commit87dfd9682c7d6e448bc28dfef2ac70fa0b2aee90 (patch)
tree50a25978f1aa736291646c14ea123aa90b7ff074
parent735884bc870a48add7e7980b4b7556f7c31375b3 (diff)
parent54105d3ed6626909b06f957890c2e9b8ded0ed5b (diff)
Merge "msm:camera: correct stats query out of boundary" into dev/msm-4.4-8996au
-rw-r--r--drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c b/drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
index ee695bf5dfd9..648249916be4 100644
--- a/drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
+++ b/drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
@@ -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;