sensorhub: add sentinel into array to fix out-of-bound memory access 67/30567/2
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 20 Nov 2014 08:25:03 +0000 (17:25 +0900)
committerChanho Park <chanho61.park@samsung.com>
Fri, 21 Nov 2014 08:48:14 +0000 (00:48 -0800)
commit15a9e0467a7ee6a9e8ecfbf4e851ea768010ab5e
tree834d18f4870516f76a46ab24f3840f642a9d317e
parent0fe4c61d7a36a61512562fa7dbbea55585c818ae
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>
drivers/sensorhub/stm/ssp_dev.c