diff options
author | Krishna Kumar <[email protected]> | 2024-07-01 13:15:06 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2024-07-04 23:10:40 +1000 |
commit | 335e35b748527f0c06ded9eebb65387f60647fda (patch) | |
tree | b35e83a88993d6aabd87afb055bb823632eb164a /scripts/generate_rust_analyzer.py | |
parent | 45547a0a93d85f704b49788cde2e1d9ab9cd363b (diff) |
pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv
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 <[email protected]>
Closes: https://lore.kernel.org/all/1981605666.2142272.1703742465927.JavaMail.zimbra@raptorengineeringinc.com/
Acked-by: Bjorn Helgaas <[email protected]>
Tested-by: Shawn Anastasio <[email protected]>
Signed-off-by: Krishna Kumar <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions