Fix invalid vendor ID constant (typo).

During a bus rescan the check for an invalid vendor ID of a subfunction
used the wrong constant.

Submitted by:	Dexuan Cui <decui@microsoft.com>
MFC after:	3 days
This commit is contained in:
John Baldwin 2016-09-21 16:51:56 +00:00
parent 5fca7e1f13
commit bd71669277

View File

@ -3971,7 +3971,7 @@ pci_rescan_method(device_t dev)
if (hdrtype & PCIM_MFDEV)
pcifunchigh = PCIB_MAXFUNCS(pcib);
for (f = 0; f <= pcifunchigh; f++) {
if (REG(PCIR_VENDOR, 2) == 0xfff)
if (REG(PCIR_VENDOR, 2) == 0xffff)
continue;
/*