]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r264091
authorrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 1 Mar 2015 04:26:47 +0000 (04:26 +0000)
committerrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 1 Mar 2015 04:26:47 +0000 (04:26 +0000)
commitc32bd2fdb900d24139d813c69d8f8be4603f398a
tree8cfce0cb9f6e43e9b1a23798887e1cf43edfdf3a
parent49f9f19e78cd4027145b999b55aeb2cd16541300
MFC r264091

   Correct a PCI enumeration bug introduced in r264011

   Ensure that first_func is set to 0 on every iteration of the PCI slot
   enumeration loop after the first.  There is a continue statement that would
   cause first_func to stay at 1 any PCI device where slot 0 has no functions
   until we find a slot that does have a function.  This would cause us to
   not enumerate the first PCI function on the device.

   Credit to markj@ for spotting the bug.

   X-MFC-With: r264011

git-svn-id: svn://svn.freebsd.org/base/stable/10@279471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/pci/pci.c