diff options
| author | Tyrel Datwyler <[email protected]> | 2021-02-11 18:24:35 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-04-16 13:58:04 +0000 |
| commit | 38d0b1c9cec71e6d0f3bddef0bbce41d05a3e796 (patch) | |
| tree | de15257dffd6ae09528c31f2eff7ff86aad210bf /arch/powerpc/sysdev/xive/native.c | |
| parent | macintosh/via-pmu: Fix build warning (diff) | |
| download | kernel-38d0b1c9cec71e6d0f3bddef0bbce41d05a3e796.tar.gz kernel-38d0b1c9cec71e6d0f3bddef0bbce41d05a3e796.zip | |
powerpc/pseries: extract host bridge from pci_bus prior to bus removal
The pci_bus->bridge reference may no longer be valid after
pci_bus_remove() resulting in passing a bad value to device_unregister()
for the associated bridge device.
Store the host_bridge reference in a separate variable prior to
pci_bus_remove().
Fixes: 7340056567e3 ("powerpc/pci: Reorder pci bus/bridge unregistration during PHB removal")
Signed-off-by: Tyrel Datwyler <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/sysdev/xive/native.c')
0 files changed, 0 insertions, 0 deletions
