diff options
author | Junzhe Zou <jnzhezou@codeaurora.org> | 2017-02-10 11:25:50 -0800 |
---|---|---|
committer | Junzhe Zou <jnzhezou@codeaurora.org> | 2017-02-22 10:54:50 -0800 |
commit | e8900bf92d32609fb57e169c196e1c6d35d92869 (patch) | |
tree | 224fb73c584b77d11ddecec348cb1e3b23be4991 /drivers/media | |
parent | 487ff740cb8a0111016b0da2616aa8104cb0d440 (diff) |
msm: isp: Fix dummy print which may leak address
Delete the print of an uninitialized local variable to prevent
kernel from leaking address to userspace
CRs-Fixed: 2004810
Change-Id: Ie1c473f6e652adb4a9d10865522483718fbdafcc
Signed-off-by: Junzhe Zou <jnzhezou@codeaurora.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c index 1ddf51407884..4e74851dc67d 100644 --- a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c +++ b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c @@ -39,13 +39,13 @@ static int msm_isp_axi_create_stream(struct vfe_device *vfe_dev, struct msm_vfe_axi_stream_request_cmd *stream_cfg_cmd, struct msm_vfe_axi_stream *stream_info) { - uint32_t i; + uint32_t i = 0; int rc = 0; if (stream_info->state != AVAILABLE) { - pr_err("%s:%d invalid state %d expected %d for src %d\n", + pr_err("%s:%d invalid state %d expected %d\n", __func__, __LINE__, stream_info->state, - AVAILABLE, i); + AVAILABLE); return -EINVAL; } |