Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41ffa1f4 authored by Depeng Shao's avatar Depeng Shao
Browse files

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: default avatarDepeng Shao <depengs@codeaurora.org>
parent 402c0a50
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)