diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2014-12-04 20:19:30 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2014-12-04 20:21:42 +0900 |
commit | 22cace97dfa1b8084eae8613eaa968de2e125b34 (patch) | |
tree | b991ba5fb4400ea71b219b36303c433a018c0b84 | |
parent | 845f232c0f0693a0641e1669762327731477edde (diff) | |
download | linux-3.10-22cace97dfa1b8084eae8613eaa968de2e125b34.tar.gz linux-3.10-22cace97dfa1b8084eae8613eaa968de2e125b34.tar.bz2 linux-3.10-22cace97dfa1b8084eae8613eaa968de2e125b34.zip |
input: keyboard: mcs_touchkey: add sentinel into array of of_device_id
Without sentinel, of_match_node() to array causes out-of-bound
memory access. So this patch adds sentinel into array.
Change-Id: Icfe3d8c2fdb0faa006f413e7c080b6d713eab08c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r-- | drivers/input/keyboard/mcs_touchkey.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/keyboard/mcs_touchkey.c b/drivers/input/keyboard/mcs_touchkey.c index 73177537aad..bd2b94b4012 100644 --- a/drivers/input/keyboard/mcs_touchkey.c +++ b/drivers/input/keyboard/mcs_touchkey.c @@ -324,6 +324,7 @@ MODULE_DEVICE_TABLE(i2c, mcs_touchkey_id); static struct of_device_id mcs_touchkey_dt_match[] = { { .compatible = "mcs5000_touchkey", }, { .compatible = "mcs5080_touchkey", }, + { }, }; static struct i2c_driver mcs_touchkey_driver = { |