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

Commit 7a95ffc2 authored by Shobhit Singh's avatar Shobhit Singh Committed by Mounika Reddy Tangirala
Browse files

msm: camera: isp: Add null check for vfe_dev.



In some cases, observed that vfe node information is
not filled in the stream information, this will lead
to a null pointer access. To avoid such scenarios,
a null check is added.

Change-Id: Ibe8e095629574e2d8b8fbb097449d49bc0a762b3
Signed-off-by: default avatarShobhit Singh <shobsi@codeaurora.org>
Signed-off-by: default avatarMounika Reddy Tangirala <mtangi@codeaurora.org>
parent a6285404
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -536,6 +536,12 @@ static void msm_isp_cfg_framedrop_reg(
	enum msm_vfe_input_src frame_src = SRC_TO_INTF(stream_info->stream_src);
	int i;

	if (vfe_dev == NULL) {
		pr_err("%s %d returning vfe_dev is NULL\n",
			__func__,  __LINE__);
		return;
	}

	if (vfe_dev->axi_data.src_info[frame_src].frame_id >=
		stream_info->init_frame_drop)
		runtime_init_frame_drop = 0;