pmaports/device/linux-samsung-i927/0027-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch
Sergey Larin 5ccbcf999d
samsung-i927: update kernel to 5.2.1, more updates (!452)
- OTG support
- Charger
- WiFi 5GHz
- RTC bug "fixed" (always-on interrupt - made device overheat!)
- Kernel version bumped to 5.2.1
- Memory timings
- New WM8994 codec board driver (fixes suspend/resume)
- Camera's regulator supported now (saves power at least!)
- Updated panel driver (still not in mainline, idk why)
- MHL support in kernel (fixes boot times and screen, currently disabled in X,
  not tested)
- Other minor kernel chagnes

[ci:skip-build]: already built successfully in CI
2019-07-17 00:15:26 +02:00

30 lines
1 KiB
Diff

From 869e15f976c669fbf6fcc8b4faeb7b43a4580686 Mon Sep 17 00:00:00 2001
From: Seung-Woo Kim <sw0312.kim@samsung.com>
Date: Thu, 4 Dec 2014 20:19:30 +0900
Subject: [PATCH] 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>
---
drivers/input/keyboard/mcs_touchkey.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/input/keyboard/mcs_touchkey.c b/drivers/input/keyboard/mcs_touchkey.c
index b5e2a8a2d3d1..cd26a5560449 100644
--- a/drivers/input/keyboard/mcs_touchkey.c
+++ b/drivers/input/keyboard/mcs_touchkey.c
@@ -317,6 +317,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 = {
--
2.22.0