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

Commit 531a7f81 authored by Alok Kediya's avatar Alok Kediya Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: ispif: Validate vfe_intf parameter



Validate vfe_intf parameter to avoid invalid register access.

Change-Id: I8180c1f6fdee7305671a1265cba4653e638e56d2
Signed-off-by: default avatarAlok Kediya <kediya@codeaurora.org>
parent de07f7e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,8 +61,8 @@ static void msm_ispif_io_dump_reg(struct ispif_device *ispif)
static inline int msm_ispif_is_intf_valid(uint32_t csid_version,
	uint8_t intf_type)
{
	return (csid_version <= CSID_VERSION_V22 && intf_type != VFE0) ?
		false : true;
        return ((csid_version <= CSID_VERSION_V22 && intf_type != VFE0) ||
                (intf_type >= VFE_MAX)) ? false : true;
}

static struct msm_cam_clk_info ispif_8626_reset_clk_info[] = {