mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
When device_get_children returns an error, ignore that bus' children.
This commit is contained in:
parent
60e984e137
commit
d444cd5f28
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182068
@ -118,7 +118,8 @@ agp_find_display(void)
|
||||
bus = devclass_get_device(pci, busnum);
|
||||
if (!bus)
|
||||
continue;
|
||||
device_get_children(bus, &kids, &numkids);
|
||||
if (device_get_children(bus, &kids, &numkids) != 0)
|
||||
continue;
|
||||
for (i = 0; i < numkids; i++) {
|
||||
dev = kids[i];
|
||||
if (pci_get_class(dev) == PCIC_DISPLAY
|
||||
|
Loading…
Reference in New Issue
Block a user