ARM: EXYNOS: Add sentinel into array to fix out-of-bound memory access 64/30564/2
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 19 Nov 2014 04:08:33 +0000 (13:08 +0900)
committerChanho Park <chanho61.park@samsung.com>
Fri, 21 Nov 2014 08:47:59 +0000 (00:47 -0800)
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 <sw0312.kim@samsung.com>
arch/arm/mach-exynos/common.c

index 2cb9435..e4a2f27 100644 (file)
@@ -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";