mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
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:
parent
afdd3c12a7
commit
496cf578aa
1 changed files with 6 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue