Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Oct 2016 23:16:38 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r306662 - stable/11/sys/dev/pci
Message-ID:  <201610032316.u93NGcgC057617@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Mon Oct  3 23:16:38 2016
New Revision: 306662
URL: https://svnweb.freebsd.org/changeset/base/306662

Log:
  MFC 306126: Fix invalid vendor ID constant (typo).
  
  During a bus rescan the check for an invalid vendor ID of a subfunction
  used the wrong constant.

Modified:
  stable/11/sys/dev/pci/pci.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/pci/pci.c
==============================================================================
--- stable/11/sys/dev/pci/pci.c	Mon Oct  3 23:15:44 2016	(r306661)
+++ stable/11/sys/dev/pci/pci.c	Mon Oct  3 23:16:38 2016	(r306662)
@@ -3970,7 +3970,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?201610032316.u93NGcgC057617>