freebsd-dev/sys/contrib
Brandon Bergren 9f15304d32 Fix read past end of struct in ncsw glue code.
The logic in XX_IsPortalIntr() was reading past the end of XX_PInfo.
This was causing it to erroneously return 1 instead of 0 in some
circumstances, causing a panic on the AmigaOne X5000 due to mixing
exclusive and nonexclusive interrupts on the same interrupt line.

Since this code is only called a couple of times during startup, use
a simple double loop instead of the complex read-ahead single loop.

This also fixes a bug where it would never check cpu=0 on type=1.

Approved by: jhibbits (mentor)
Differential Revision: https://reviews.freebsd.org/D21988
2019-10-12 23:16:17 +00:00
..
alpine-hal
ck Import CK as of 21d3e319407d19dece16ee317c757ffc54a452bc, which makes its 2018-11-27 12:35:51 +00:00
cloudabi
dev athhal: disable unused function (big endian only) 2019-08-21 10:42:31 +00:00
edk2
ena-com Adjust ENA driver to the new ena-com 2019-05-30 13:01:46 +00:00
ipfilter/netinet Widen NET_EPOCH coverage. 2019-10-07 22:40:05 +00:00
libb2 MFV: libb2: use native calls for secure memory clearance 2018-03-27 14:55:01 +00:00
libfdt
libnv The nvlist_report_missing is also used by the cnvlist. 2019-04-11 04:24:41 +00:00
libsodium Bring in libsodium to sys/contrib 2018-08-17 00:23:50 +00:00
ncsw Fix read past end of struct in ncsw glue code. 2019-10-12 23:16:17 +00:00
ngatm
octeon-sdk octeon-sdk: suppress another set of warnings under clang 2019-09-22 18:32:05 +00:00
rdma/krping Notify all sleeping threads of device removal in krping. 2019-10-02 09:03:48 +00:00
v4l
vchiq/interface Change synchonization rules for vm_page reference counting. 2019-09-09 21:32:42 +00:00
x86emu
xz-embedded Modularize xz. 2019-02-26 19:55:03 +00:00
zlib MFV r351500: Fix CLEAR_HASH macro to be usable as a single statement. 2019-08-26 00:46:39 +00:00
zstd Stopgap fix for gcc platforms. 2019-08-08 20:09:36 +00:00