Set the bus number field when attaching a PCI device.

MFC after:	1 week
This commit is contained in:
markj 2017-08-23 16:50:10 +00:00
parent 3417044ad6
commit c1973cc94e

View File

@ -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;
}