aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/apm-power.c
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2019-11-12 17:04:54 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-11-12 17:11:26 -0800
commit79aae6acbef16f720a7949f8fc6ac69816c79d62 (patch)
tree98f3219e7b72811640cf317b770431b53929d544 /drivers/input/apm-power.c
parentInput: synaptics-rmi4 - clear IRQ enables for F54 (diff)
downloadlinux-dev-79aae6acbef16f720a7949f8fc6ac69816c79d62.tar.xz
linux-dev-79aae6acbef16f720a7949f8fc6ac69816c79d62.zip
Input: cyttsp4_core - fix use after free bug
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>
Diffstat (limited to 'drivers/input/apm-power.c')
0 files changed, 0 insertions, 0 deletions