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