summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2018-04-30 20:29:28 +0000
committerjhb <jhb@FreeBSD.org>2018-04-30 20:29:28 +0000
commit4e88c693301bb2c1e169307ec03ad2a6d2abcb6e (patch)
tree318f770132e12d573268548f907be872fa5be56f /share
parent4aefbd6952cff7b80d06d8f0d3805e1453ad9ec1 (diff)
downloadFreeBSD-src-4e88c693301bb2c1e169307ec03ad2a6d2abcb6e.zip
FreeBSD-src-4e88c693301bb2c1e169307ec03ad2a6d2abcb6e.tar.gz
MFC 332735:
Fix two off-by-one errors when allocating MSI and MSI-X interrupts. x86 enforces an (arbitray) limit on the number of available MSI and MSI-X interrupts to simplify code (in particular, interrupt_source[] is statically sized). This means that an attempt to allocate an MSI vector needs to fail if it would go beyond the limit, but the checks for exceeding the limit had an off-by-one error. In the case of MSI-X which allocates interrupts one at a time this meant that IRQ 768 kept getting handed out multiple times for msix_alloc() instead of failing because all MSI IRQs were in use.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud