]> CyberLeo.Net >> Repos - FreeBSD/stable/9.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)
commit57a4ab26845eaeff057cd92712eae0c8ea3d2007
treebffa6164c4c9d37ba5886e8896394085fe83c126
parentaf57b678b825dc65af1e55475da85262dfd79743
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/9@304511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/pci/pci.c