linux-stable/drivers/input
Pan Bian b4827e98de 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-17 20:37:28 +01:00
..
gameport License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
joystick Input: iforce - add sanity checks 2019-08-25 10:50:08 +02:00
keyboard Input: imx_keypad - make sure keyboard can always wake up system 2019-07-21 09:04:23 +02:00
misc Input: da9063 - fix capability and drop KEY_SLEEP 2019-10-29 09:17:33 +01:00
mouse Input: elan_i2c - remove Lenovo Legion Y7000 PnpID 2019-09-21 07:15:26 +02:00
rmi4 Input: synaptics-rmi4 - destroy F54 poller workqueue when removing 2019-11-20 17:59:30 +01:00
serio parisc: Fix HP SDC hpa address output 2019-12-05 15:37:11 +01:00
tablet Input: kbtab - sanity check for endpoint type 2019-08-25 10:50:07 +02:00
touchscreen Input: cyttsp4_core - fix use after free bug 2019-12-17 20:37:28 +01:00
apm-power.c
evbug.c
evdev.c input: utilize new cdev_device_add helper function 2017-03-21 06:44:32 +01:00
ff-core.c Input: uinput - avoid FF flush when destroying device 2017-09-21 16:31:22 -07:00
ff-memless.c Input: ff-memless - kill timer in destroy() 2019-11-20 17:59:28 +01:00
input-compat.c
input-compat.h
input-leds.c Input: leds - fix out of bound access 2018-05-09 09:51:51 +02:00
input-mt.c
input-polldev.c
input.c Input: do not use WARN() in input_alloc_absinfo() 2018-09-15 09:45:30 +02:00
joydev.c Input: joydev - blacklist ds3/ds4/udraw motion sensors 2017-10-19 16:55:39 -07:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matrix-keymap.c
mousedev.c Input: mousedev - fix implicit conversion warning 2017-07-25 13:54:31 -07:00
sparse-keymap.c Input: sparse-keymap - send sync event for KE_SW/KE_VSW 2017-11-03 12:47:48 -07:00