Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8900bf9 authored by Junzhe Zou's avatar Junzhe Zou
Browse files

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: default avatarJunzhe Zou <jnzhezou@codeaurora.org>
parent 487ff740
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
	}