diff options
| author | Evgeny Novikov <novikov@ispras.ru> | 2021-06-01 19:38:01 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-09-30 10:08:03 +0200 |
| commit | ef11357046512918ab876aa0f837b0a6de65a3c6 (patch) | |
| tree | 83f4d1a0850de9bf1125ec79f68ee2c0a4baa2b1 /tools/perf/scripts/python | |
| parent | HID: wacom: Add new Intuos BT (CTL-4100WL/CTL-6100WL) device IDs (diff) | |
| download | linux-ef11357046512918ab876aa0f837b0a6de65a3c6.tar.gz linux-ef11357046512918ab876aa0f837b0a6de65a3c6.zip | |
HID: amd_sfh: Fix potential NULL pointer dereference
devm_add_action_or_reset() can suddenly invoke amd_mp2_pci_remove() at
registration that will cause NULL pointer dereference since
corresponding data is not initialized yet. The patch moves
initialization of data before devm_add_action_or_reset().
Found by Linux Driver Verification project (linuxtesting.org).
[jkosina@suse.cz: rebase]
Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
