In the Linux kernel, the following vulnerability has been resolved:
HID: amd_sfh: Fix potential NULL pointer dereference
devmaddactionorreset() can suddenly invoke amdmp2pciremove() at registration that will cause NULL pointer dereference since corresponding data is not initialized yet. The patch moves initialization of data before devmaddactionor_reset().
Found by Linux Driver Verification project (linuxtesting.org).
[jkosina@suse.cz: rebase]