Pārlūkot izejas kodu

Merge "msm: camera: ife: Null pointer check for dump_data" into camera-kernel.lnx.5.0

Camera Software Integration 3 gadi atpakaļ
vecāks
revīzija
36992ffa10

+ 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;
 	}
 	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;
 
 	/*Dump registers */