In the Linux kernel, the following vulnerability has been resolved: HID: amdsfh: 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 devmaddactionorreset(). Found by Linux Driver Verification project (linuxtesting.org). [jkosina@suse.cz: rebase]