summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2020-05-20 15:23:32 +0800
committerSuper Liu <supercjliu@google.com>2020-05-20 19:38:12 +0800
commit639fc6ee26ef801686e6b6052d6be2a4bf98a579 (patch)
tree54ac921e58a28d935d5f912744a65269a10a7d09
parente6a6e1a7842612393c8e05bf46ff7a02415ed8c7 (diff)
downloadsec_touch-639fc6ee26ef801686e6b6052d6be2a4bf98a579.tar.gz
sec_touch: resolve the issue for KASAN use-after-free
Bug: 156978017 Change-Id: I371896ffda4a98e2c749a7fd9764ea53f0e55c72 Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r--sec_ts.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sec_ts.c b/sec_ts.c
index 6f8dfc2..f5d90cb 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -4142,14 +4142,7 @@ static void sec_ts_shutdown(struct i2c_client *client)
static void sec_ts_shutdown(struct spi_device *client)
#endif
{
-#ifdef I2C_INTERFACE
- struct sec_ts_data *ts = i2c_get_clientdata(client);
-#else
- struct sec_ts_data *ts = spi_get_drvdata(client);
-#endif
-
- input_info(true, &ts->client->dev, "%s\n", __func__);
-
+ pr_info("%s\n", __func__);
sec_ts_remove(client);
}