kernel_samsung_a53x/drivers/pci/hotplug
Krishna Kumar 967ec9a044 pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv
[ Upstream commit 335e35b748527f0c06ded9eebb65387f60647fda ]

The hotplug driver for powerpc (pci/hotplug/pnv_php.c) causes a kernel
crash when we try to hot-unplug/disable the PCIe switch/bridge from
the PHB.

The crash occurs because although the MSI data structure has been
released during disable/hot-unplug path and it has been assigned
with NULL, still during unregistration the code was again trying to
explicitly disable the MSI which causes the NULL pointer dereference and
kernel crash.

The patch fixes the check during unregistration path to prevent invoking
pci_disable_msi/msix() since its data structure is already freed.

Reported-by: Timothy Pearson <tpearson@raptorengineering.com>
Closes: https://lore.kernel.org/all/1981605666.2142272.1703742465927.JavaMail.zimbra@raptorengineeringinc.com/
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Shawn Anastasio <sanastasio@raptorengineering.com>
Signed-off-by: Krishna Kumar <krishnak@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240701074513.94873-2-krishnak@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:05 +01:00
..
acpi_pcihp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acpiphp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acpiphp_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acpiphp_glue.c Revert "PCI: acpiphp: Reassign resources on bridge if necessary" 2024-11-18 12:11:50 +01:00
acpiphp_ibm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpci_hotplug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpci_hotplug_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpci_hotplug_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpcihp_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpcihp_zt5550.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpcihp_zt5550.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpqphp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpqphp_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpqphp_ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpqphp_nvram.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpqphp_nvram.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpqphp_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpqphp_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmphp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmphp_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmphp_ebda.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmphp_hpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmphp_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmphp_res.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci_hotplug_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pciehp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pciehp_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pciehp_ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pciehp_hpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pciehp_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pnv_php.c pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv 2024-11-23 23:21:05 +01:00
rpadlpar.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpadlpar_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpadlpar_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpaphp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpaphp_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpaphp_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpaphp_slot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s390_pci_hpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shpchp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shpchp_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shpchp_ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shpchp_hpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shpchp_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shpchp_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
TODO Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00