Index: sys/dev/pci/pci.c =================================================================== --- sys/dev/pci/pci.c +++ sys/dev/pci/pci.c @@ -4506,10 +4506,10 @@ line = 0; while (resource_find_dev(&line, name, &unit, "at", NULL) == 0) { resource_string_value(name, unit, "at", &at); - if (strcmp(at, me1) != 0 && strcmp(at, me2) != 0) - continue; /* No match, try next candidate */ - *unitp = unit; - return; + if (strcmp(at, me1) == 0 || strcmp(at, me2) == 0) { + *unitp = unit; + return; + } } }