diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2014-11-20 17:25:03 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-21 00:48:14 -0800 |
commit | 15a9e0467a7ee6a9e8ecfbf4e851ea768010ab5e (patch) | |
tree | 834d18f4870516f76a46ab24f3840f642a9d317e /drivers | |
parent | 0fe4c61d7a36a61512562fa7dbbea55585c818ae (diff) | |
download | linux-3.10-15a9e0467a7ee6a9e8ecfbf4e851ea768010ab5e.tar.gz linux-3.10-15a9e0467a7ee6a9e8ecfbf4e851ea768010ab5e.tar.bz2 linux-3.10-15a9e0467a7ee6a9e8ecfbf4e851ea768010ab5e.zip |
sensorhub: add sentinel into array to fix out-of-bound memory access
Without sentinel, of_match_node() to array causes out-of-bound
memory access. So this patch adds sentinel into ssp_of_match.
Change-Id: I66d69b10f6e96ceb0a874554249317416c58471d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/sensorhub/stm/ssp_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/sensorhub/stm/ssp_dev.c b/drivers/sensorhub/stm/ssp_dev.c index 249e7c346b0..b488219c722 100644 --- a/drivers/sensorhub/stm/ssp_dev.c +++ b/drivers/sensorhub/stm/ssp_dev.c @@ -670,6 +670,7 @@ static const struct dev_pm_ops ssp_pm_ops = { static struct of_device_id ssp_of_match[] = { { .compatible = "samsung,ssp-spi", }, + { }, }; static struct spi_driver ssp_driver = { |