diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2014-11-20 18:05:49 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-21 03:02:20 -0800 |
commit | 97a50bff4763a53a2b0ca7e5785b68e10ed12a53 (patch) | |
tree | 04a8a380cafcd5ec055465eeb0dd0004e4502392 | |
parent | 71cc90b3c9f4d65904e3a567e8e803f9e98010cd (diff) | |
download | linux-3.10-submit/tizen_common/20141124.090428.tar.gz linux-3.10-submit/tizen_common/20141124.090428.tar.bz2 linux-3.10-submit/tizen_common/20141124.090428.zip |
devfreq: exynos4: Add sentinel into array to fix out-of-bound accesssubmit/tizen_common/20141124.090428submit/tizen/20141123.134900submit/tizen/20141121.110247
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/devfreq/exynos/exynos4_bus.c b/drivers/devfreq/exynos/exynos4_bus.c index 6ccc5a66977..ae329cc32b5 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 |