Skip to content

Commit 7042689

Browse files
Sebastian OttMartin Schwidefsky
authored andcommitted
s390/pci: fix removal of nonexistent pci bus
If we remove a pci bus after receiving a hotplug notification we need to check if the bus is actually present (creation of the pci bus during an earlier notification may have been failed). Reviewed-by: Gerald Schaefer <[email protected]> Signed-off-by: Sebastian Ott <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent aa3b7c2 commit 7042689

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/s390/pci/pci_event.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ static void __zpci_event_availability(struct zpci_ccdf_avail *ccdf)
112112
clp_rescan_pci_devices();
113113
break;
114114
case 0x0308: /* Standby -> Reserved */
115+
if (!zdev)
116+
break;
115117
pci_stop_root_bus(zdev->bus);
116118
pci_remove_root_bus(zdev->bus);
117119
break;

0 commit comments

Comments
 (0)