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

Commit 496cf578 authored by Sujit Das's avatar Sujit Das
Browse files

msm: camera: ife: Null pointer check for dump_data



When pipeline is IFE_Lite and IFE_LITE doesn't define dump_data,
Need to have null check for dump_data.

CRs-Fixed: 2980840
Change-Id: Icb3322b82b265829e4a54271fa30260a00f90175
Signed-off-by: default avatarSujit Das <sujitd@codeaurora.org>
parent afdd3c12
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -405,6 +405,12 @@ static int cam_vfe_hw_dump(
		return -ENOSPC;
	}
	dump_data = top_priv->common_data.dump_data;

	if (!dump_data) {
		CAM_ERR(CAM_ISP, "Dump data not available");
		return -EINVAL;
	}

	soc_info = top_priv->common_data.soc_info;

	/*Dump registers */