diff options
| author | Pan Bian <bianpan2016@163.com> | 2019-11-12 17:04:54 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 10:34:23 +0100 |
| commit | eedf2832ff357a4f0fb686b4d4c9fb5e716514f7 (patch) | |
| tree | 9dfe2f271eb8c2aebedaf40998ce7fa937f0ac15 /scripts/basic | |
| parent | a93342d99b19ae161e0ed8b4fe5601ad604f12ca (diff) | |
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>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
