diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2014-11-19 13:08:33 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-21 00:47:59 -0800 |
commit | d8b315f4e6215c9fb3ff035cd96e7638e88b7e0e (patch) | |
tree | ad2ec0962fabf333a4fab00fe12d93a95097fc5b | |
parent | 71cdb6de98f4311c3e9ffdc332dd075ea3e31395 (diff) | |
download | linux-3.10-d8b315f4e6215c9fb3ff035cd96e7638e88b7e0e.tar.gz linux-3.10-d8b315f4e6215c9fb3ff035cd96e7638e88b7e0e.tar.bz2 linux-3.10-d8b315f4e6215c9fb3ff035cd96e7638e88b7e0e.zip |
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 <sw0312.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-exynos/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 2cb94358e4d..e4a2f27571b 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"; |