linux/drivers/hid/amd-sfh-hid
Evgeny Novikov d46ef750ed 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>
2021-09-16 09:14:33 +02:00
..
hid_descriptor HID: amd_sfh: Add initial support for HPD sensor 2021-06-24 14:28:03 +02:00
amd_sfh_client.c HID: amd_sfh: Add dyndbg prints for debugging 2021-08-20 14:48:49 +02:00
amd_sfh_hid.c HID: amd_sfh: Use devm_kzalloc() instead of kzalloc() 2021-05-27 15:40:34 +02:00
amd_sfh_hid.h HID: amd_sfh: Add initial support for HPD sensor 2021-06-24 14:28:03 +02:00
amd_sfh_pcie.c HID: amd_sfh: Fix potential NULL pointer dereference 2021-09-16 09:14:33 +02:00
amd_sfh_pcie.h HID: amd_sfh: Add support for PM suspend and resume 2021-08-20 14:48:49 +02:00
Kconfig
Makefile