Explorar o código

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 <[email protected]>
Signed-off-by: Dharmender Sharma <[email protected]>
Sujit Das %!s(int64=4) %!d(string=hai) anos
pai
achega
42e600ac01

+ 5 - 0
drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_top_ver2.c

@@ -322,6 +322,11 @@ static int cam_vfe_hw_dump(
 		return -ENOSPC;
 		return -ENOSPC;
 	}
 	}
 	dump_data = top_priv->common_data.dump_data;
 	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->top_common.soc_info;
 	soc_info = top_priv->top_common.soc_info;
 
 
 	/*Dump registers */
 	/*Dump registers */