projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fe4c61
)
sensorhub: add sentinel into array to fix out-of-bound memory access
67/30567/2
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Thu, 20 Nov 2014 08:25:03 +0000
(17:25 +0900)
committer
Chanho Park
<chanho61.park@samsung.com>
Fri, 21 Nov 2014 08:48:14 +0000
(
00:48
-0800)
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>
drivers/sensorhub/stm/ssp_dev.c
patch
|
blob
|
history
diff --git
a/drivers/sensorhub/stm/ssp_dev.c
b/drivers/sensorhub/stm/ssp_dev.c
index
249e7c3
..
b488219
100644
(file)
--- 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 = {