svn commit: r306126 - head/sys/dev/pci

John Baldwin jhb at FreeBSD.org
Wed Sep 21 16:51:57 UTC 2016


Author: jhb
Date: Wed Sep 21 16:51:56 2016
New Revision: 306126
URL: https://svnweb.freebsd.org/changeset/base/306126

Log:
  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 at microsoft.com>
  MFC after:	3 days

Modified:
  head/sys/dev/pci/pci.c

Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c	Wed Sep 21 16:29:15 2016	(r306125)
+++ head/sys/dev/pci/pci.c	Wed Sep 21 16:51:56 2016	(r306126)
@@ -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;
 
 			/*


More information about the svn-src-head mailing list