]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 298950: Fix an off by one error when remapping MSI-X vectors.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 20 Aug 2016 00:22:39 +0000 (00:22 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 20 Aug 2016 00:22:39 +0000 (00:22 +0000)
commita7c16c0443b21bb73be9a2552c751e47e847c30e
tree1e931a4a16ef321800662f6184bd65e72ad6993e
parentf76d828c03cca233d899412d9e04d4bd8cc0b048
MFC 298950: Fix an off by one error when remapping MSI-X vectors.

pci_remap_msix() can be used to alter the mapping of allocated
MSI-X vectors to the MSI-X table.  The code had an off by one error
when adding the IRQ resources after performing a remap.  This was
fatal for any vectors in the table that used the "last" valid IRQ as
those vectors were assigned a garbage IRQ value.

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