From bd71669277dc6f696ee282cd501da770f89ffdb4 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 21 Sep 2016 16:51:56 +0000 Subject: [PATCH] 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 MFC after: 3 days --- sys/dev/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index c92fb4a0902..665f62e0911 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -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; /*