diff options
author | 2021-06-01 19:38:01 +0300 | |
---|---|---|
committer | 2021-09-16 09:14:33 +0200 | |
commit | d46ef750ed58cbeeba2d9a55c99231c30a172764 (patch) | |
tree | 5b7fcf867cc478d46b47fb1726e82d637bba5dcb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | HID: wacom: Add new Intuos BT (CTL-4100WL/CTL-6100WL) device IDs (diff) | |
download | wireguard-linux-d46ef750ed58cbeeba2d9a55c99231c30a172764.tar.xz wireguard-linux-d46ef750ed58cbeeba2d9a55c99231c30a172764.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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions