Files
kernel_samsung_a71/drivers/input/touchscreen
Pan Bian b4827e98de Input: cyttsp4_core - fix use after free bug
[ Upstream commit 79aae6acbef16f720a7949f8fc6ac69816c79d62 ]

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-17 20:37:28 +01:00
..
2017-04-05 08:52:33 -07:00
2017-08-18 17:15:13 -07: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