mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-12 01:14:22 -05:00
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From 737f415a5c637802786ec6d36288220cb4d3ae4d Mon Sep 17 00:00:00 2001
|
|
From: Fei Zhang <feizhang@codeaurora.org>
|
|
Date: Wed, 17 May 2017 14:14:54 +0800
|
|
Subject: msm:camera: correct stats query out of boundary
|
|
|
|
fix one potential out of boundary query of stats info.
|
|
|
|
Change-Id: I13e4bf8802fcce529f9268c272e4727619d5ad8f
|
|
Signed-off-by: Fei Zhang <feizhang@codeaurora.org>
|
|
---
|
|
drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
mode change 100644 => 100755 drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
|
|
|
|
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
|
|
old mode 100644
|
|
new mode 100755
|
|
index d4d2c82..8d2d8e7
|
|
--- 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
|
|
@@ -885,7 +885,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;
|
|
--
|
|
cgit v1.1
|
|
|