Forráskód Böngészése

msm: camera: cdm: Fix out of bounds issue

The dt match table needs end up with null.

CRs-Fixed: 2730795
Change-Id: I75bdf20d74d9a83d9a0de28a2ad4d95412a51f0c
Signed-off-by: Depeng Shao <[email protected]>
Depeng Shao 5 éve
szülő
commit
41ffa1f4f9
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      drivers/cam_cdm/cam_cdm_hw_core.c

+ 1 - 0
drivers/cam_cdm/cam_cdm_hw_core.c

@@ -73,6 +73,7 @@ static const struct of_device_id msm_cam_hw_cdm_dt_match[] = {
 		.compatible = CAM_HW_CDM_IFE_NAME_2_1,
 		.data = &cam_cdm_2_1_reg_offset,
 	},
+	{}
 };
 
 static enum cam_cdm_id cam_hw_cdm_get_id_by_name(char *name)