Set the bus number field when attaching a PCI device.
MFC after: 1 week
This commit is contained in:
parent
3417044ad6
commit
c1973cc94e
@ -167,6 +167,7 @@ linux_pci_attach(device_t dev)
|
||||
if (pdev->bus == NULL) {
|
||||
pbus = malloc(sizeof(*pbus), M_DEVBUF, M_WAITOK | M_ZERO);
|
||||
pbus->self = pdev;
|
||||
pbus->number = pci_get_bus(dev);
|
||||
pdev->bus = pbus;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user