Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2016 16:51:56 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306126 - head/sys/dev/pci
Message-ID:  <201609211651.u8LGpud9049760@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
 
 			/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609211651.u8LGpud9049760>