Files
linux/drivers/input/touchscreen
Pan Bian 41415da3aa Input: cyttsp4_core - fix use after free bug
[ Upstream commit 79aae6acbe ]

The device md->input is used after it is released. Setting the device
data to NULL is unnecessary as the device is never used again. Instead,
md->input should be assigned NULL to avoid accessing the freed memory
accidently. Besides, checking md->si against NULL is superfluous as it
points to a variable address, which cannot be NULL.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/1572936379-6423-1-git-send-email-bianpan2016@163.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-13 08:51:03 +01:00
..
2018-06-24 15:20:12 -07:00
2018-02-02 16:04:10 -08:00
2016-01-02 21:08:53 -08:00
2016-03-02 09:40:20 -08:00
2017-02-12 14:55:08 -08:00
2018-11-21 09:19:08 +01:00