msm: vidc: Add an empty structure to driver dt match table
Video driver dt match table did not have an empty entry to indicate end
of required dt matches. With this, the OF driver goes for out of bound
array access while searching for provided dt matches in the device node.
Add an empty structure to indicate end of dt match required by video
driver.
CRs-Fixed: 2116018
Change-Id: I887fedf342aa0c405caf8af23b1707577508d5b4
Signed-off-by: Manikanta Kanamarlapudi <kmanikan@codeaurora.org>
diff --git a/drivers/media/platform/msm/vidc/msm_vidc_platform.c b/drivers/media/platform/msm/vidc/msm_vidc_platform.c
index a82b598..56524ccd4 100644
--- a/drivers/media/platform/msm/vidc/msm_vidc_platform.c
+++ b/drivers/media/platform/msm/vidc/msm_vidc_platform.c
@@ -289,6 +289,7 @@
.compatible = "qcom,sdm670-vidc",
.data = &sdm670_data,
},
+ {},
};
MODULE_DEVICE_TABLE(of, msm_vidc_dt_match);