From d8b315f4e6215c9fb3ff035cd96e7638e88b7e0e Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 19 Nov 2014 13:08:33 +0900 Subject: [PATCH] ARM: EXYNOS: Add sentinel into array to fix out-of-bound memory access An array exynos_pinctrl_ids does not have sentinel, but it is used by of_match_node(). This cause out-of-bound memory access, so this patch adds sentinel into exynos_pinctrl_ids. Change-Id: Ic3f5cb4bcc41baa27d92ec7e9386adc4a80b813a Signed-off-by: Seung-Woo Kim --- arch/arm/mach-exynos/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 2cb9435..e4a2f27 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -989,6 +989,7 @@ static int __init exynos_init_irq_eint(void) { .compatible = "samsung,exynos4210-pinctrl", }, { .compatible = "samsung,exynos4x12-pinctrl", }, { .compatible = "samsung,exynos5250-pinctrl", }, + { }, }; struct device_node *pctrl_np, *wkup_np; const char *wkup_compat = "samsung,exynos4210-wakeup-eint"; -- 2.7.4