aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorDexuan Cui <[email protected]>2023-08-16 17:59:39 +0000
committerLorenzo Pieralisi <[email protected]>2023-08-22 13:03:11 +0000
commit04bbe863241a9be7d57fb4cf217ee4a72f480e70 (patch)
tree780200d11f0efebe8a6b94b1e479dc7dc7d87c78 /tools/perf/scripts/python/mem-phys-addr.py
parentLinux 6.5-rc1 (diff)
downloadkernel-04bbe863241a9be7d57fb4cf217ee4a72f480e70.tar.gz
kernel-04bbe863241a9be7d57fb4cf217ee4a72f480e70.zip
PCI: hv: Fix a crash in hv_pci_restore_msi_msg() during hibernation
When a Linux VM with an assigned PCI device runs on Hyper-V, if the PCI device driver is not loaded yet (i.e. MSI-X/MSI is not enabled on the device yet), doing a VM hibernation triggers a panic in hv_pci_restore_msi_msg() -> msi_lock_descs(&pdev->dev), because pdev->dev.msi.data is still NULL. Avoid the panic by checking if MSI-X/MSI is enabled. Link: https://lore.kernel.org/r/[email protected] Fixes: dc2b453290c4 ("PCI: hv: Rework MSI handling") Signed-off-by: Dexuan Cui <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: [email protected] Reviewed-by: Michael Kelley <[email protected]> Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions