summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2014-11-20 09:05:49 (GMT)
committerChanho Park <chanho61.park@samsung.com>2014-11-21 11:02:20 (GMT)
commit97a50bff4763a53a2b0ca7e5785b68e10ed12a53 (patch)
tree04a8a380cafcd5ec055465eeb0dd0004e4502392
parent71cc90b3c9f4d65904e3a567e8e803f9e98010cd (diff)
downloadlinux-3.10-97a50bff4763a53a2b0ca7e5785b68e10ed12a53.zip
linux-3.10-97a50bff4763a53a2b0ca7e5785b68e10ed12a53.tar.gz
linux-3.10-97a50bff4763a53a2b0ca7e5785b68e10ed12a53.tar.bz2
Without sentinel, of_match_node() to array causes out-of-bound memory access. So this patch adds sentinel into exynos4_busfreq_match. Change-Id: Iec2390fd367a22e6388eb97fae21eafc3836e206 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--drivers/devfreq/exynos/exynos4_bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/devfreq/exynos/exynos4_bus.c b/drivers/devfreq/exynos/exynos4_bus.c
index 6ccc5a6..ae329cc 100644
--- a/drivers/devfreq/exynos/exynos4_bus.c
+++ b/drivers/devfreq/exynos/exynos4_bus.c
@@ -979,6 +979,7 @@ static const struct of_device_id exynos4_busfreq_match[] = {
.compatible = "samsung,exynos4x12-busfreq",
.data = (void *)TYPE_BUSF_EXYNOS4x12,
},
+ { },
};
MODULE_DEVICE_TABLE(of, exynos4_busfreq_match[]);
#else