diff options
author | Super Liu <supercjliu@google.com> | 2020-05-20 15:23:32 +0800 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2020-05-20 19:38:12 +0800 |
commit | 639fc6ee26ef801686e6b6052d6be2a4bf98a579 (patch) | |
tree | 54ac921e58a28d935d5f912744a65269a10a7d09 | |
parent | e6a6e1a7842612393c8e05bf46ff7a02415ed8c7 (diff) | |
download | sec_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.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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); } |