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: Sujit Das <sujitd@codeaurora.org>
This commit is contained in:
Sujit Das 2021-07-22 11:53:55 +05:30
commit 496cf578aa

View file

@ -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 */