opnsense-src/sys/dev/ixgbe
Jeremiah Lott 86efff5491 ixv: Check cap return before MSI-X enable write
In the QEMU workaround code in if_ixv.c, the ixv driver calls
pci_find_cap(dev, PCIY_MSIX, &rid). It is not checking the return code
from that function and the function appears to always be failing. This
then causes the driver to use the rid variable uninitialized, which
will mean setting a bit at an arbitrary offset in pci config space. For
now, this seems to have no adverse impact, but it could easily cause
very subtle problems.

PR:		207037
Sponsored by:	BBOX.io

(cherry picked from commit b87b3696c973ef0a9df70143cd89f6b488531e93)
2024-10-29 18:01:04 -07:00
..
if_bypass.c ixgbe: update if_bypass to ix-3.3.38 2024-09-28 02:21:39 -07:00
if_fdir.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
if_ix.c ixgbe: fix fw_recovery_mode callout 2024-09-28 02:22:42 -07:00
if_ixv.c ixv: Check cap return before MSI-X enable write 2024-10-29 18:01:04 -07:00
if_sriov.c ixgbe: Switch if_sriov read/write back to ixgbe_mbx APIs 2024-10-05 20:48:42 -07:00
ix_txrx.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe.h ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes 2024-09-28 02:22:15 -07:00
ixgbe_82598.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_82598.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_82599.c ixgbe: replace implicit fall-through comments 2024-09-26 20:33:33 -07:00
ixgbe_82599.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_api.c ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes 2024-09-28 02:22:15 -07:00
ixgbe_api.h ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes 2024-09-28 02:22:15 -07:00
ixgbe_bypass.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_common.c ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes 2024-09-28 02:22:15 -07:00
ixgbe_common.h ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes 2024-09-28 02:22:15 -07:00
ixgbe_dcb.c ixgbe: improve function comments 2024-09-26 20:32:39 -07:00
ixgbe_dcb.h ixgbe: increase DCB BW calculation for MTU 2024-09-26 20:32:25 -07:00
ixgbe_dcb_82598.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_dcb_82598.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_dcb_82599.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_dcb_82599.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_fdir.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_features.h ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes 2024-09-28 02:22:15 -07:00
ixgbe_mbx.c ixgbe: update ixgbe_mbx with ix-3.3.38 changes 2024-09-28 02:22:01 -07:00
ixgbe_mbx.h ixgbe: update ixgbe_mbx with ix-3.3.38 changes 2024-09-28 02:22:01 -07:00
ixgbe_osdep.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_osdep.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_phy.c ixgbe: fix misleading indentation in ixgbe_phy 2024-09-28 20:56:34 -07:00
ixgbe_phy.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_rss.h ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes 2024-09-28 02:22:15 -07:00
ixgbe_sriov.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_type.h ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes 2024-09-28 02:22:15 -07:00
ixgbe_vf.c ixgbe: introduce new mailbox API 2024-09-26 20:32:06 -07:00
ixgbe_vf.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_x540.c ixgbe: introduce new mailbox API 2024-09-26 20:32:06 -07:00
ixgbe_x540.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
ixgbe_x550.c ixgbe: improve Atom C3000 SWFW semaphore acq 2024-09-26 20:34:27 -07:00
ixgbe_x550.h ixgbe: remove unused function prototypes 2024-09-26 20:34:51 -07:00