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 <depengs@codeaurora.org>
This commit is contained in:
Depeng Shao 2020-07-13 21:57:26 +08:00
commit 41ffa1f4f9

View file

@ -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)