diff options
author | Evgeny Novikov <[email protected]> | 2021-06-01 19:38:01 +0300 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2021-09-16 09:14:33 +0200 |
commit | d46ef750ed58cbeeba2d9a55c99231c30a172764 (patch) | |
tree | 5b7fcf867cc478d46b47fb1726e82d637bba5dcb /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 0c8fbaa553077630e8eae45bd9676cfc01836aeb (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).
[[email protected]: rebase]
Signed-off-by: Evgeny Novikov <[email protected]>
Acked-by: Basavaraj Natikar <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions