summaryrefslogtreecommitdiff
path: root/drivers/hid/intel-ish-hid
diff options
context:
space:
mode:
authorEvgeny Novikov <novikov@ispras.ru>2021-06-01 19:38:01 +0300
committerJiri Kosina <jkosina@suse.cz>2021-09-16 09:14:33 +0200
commitd46ef750ed58cbeeba2d9a55c99231c30a172764 (patch)
tree5b7fcf867cc478d46b47fb1726e82d637bba5dcb /drivers/hid/intel-ish-hid
parent0c8fbaa553077630e8eae45bd9676cfc01836aeb (diff)
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 'drivers/hid/intel-ish-hid')
0 files changed, 0 insertions, 0 deletions