Skip to content

Commit 2f6b92a

Browse files
committed
clib: Fix PCI bus scan crash on Windows
1 parent bb50fe1 commit 2f6b92a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clib/clib_pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pci_init_dev(uint8_t bus, uint8_t dev, uint8_t func)
179179
pdev->bus = i;
180180
} else {
181181
/* Flag this bus as taken, in the unlikely case that not all bus number lookups fail. */
182-
dummy_buses[i] = pdev->parent;
182+
dummy_buses[pdev->bus] = pdev->parent;
183183
}
184184
}
185185
}

0 commit comments

Comments
 (0)