freebsd-src/sys/dev/pci
John Baldwin 56b822a17c pci: Only add special VF handling for direct children in bus methods
For activate/deactivate resource, use a more standard check at the
start of the function since the addition of the PCI_IOV code made this
more complex.  For the three recently added methods, just add the
typical check at the beginning that I missed.

This wasn't always fatal as if your system only had PCI device_t's as
children of PCI bus devices it would happen to work ok, but if you
have a non-PCI child device (e.g. an ATA channel) then dereferencing
ivars for non-direct-children could fault.

Reported by:	Cirrus-CI (via emaste)
Reviewed by:	emaste
Fixes:		871b33ad65 pci: Consistently use pci_vf_* for suballocated VF memory resources
Differential Revision:	https://reviews.freebsd.org/D45499
2024-06-05 09:50:05 -07:00
..
controller sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fixup_pci.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
hostb_pci.c new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
ignore_pci.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
isa_pci.c new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
pci.c pci: Only add special VF handling for direct children in bus methods 2024-06-05 09:50:05 -07:00
pci_dw.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
pci_dw.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_dw_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pci_dw_mv.c phy: Move phy code in dev/phy 2024-01-10 19:20:34 +01:00
pci_host_generic.c pci(4): unbreak the build 2024-06-05 06:55:33 -07:00
pci_host_generic.h new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
pci_host_generic_acpi.c pci: Fix pci_host_generic_acpi with gcc 2024-05-22 08:19:38 +00:00
pci_host_generic_acpi.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_host_generic_den0115.c PCI DEN0115: Reliably check for a memory resource during probe. 2023-07-14 10:27:40 -07:00
pci_host_generic_fdt.c pci_host_generic: Enumerate resource ranges under bootverbose 2024-03-01 14:20:10 -08:00
pci_host_generic_fdt.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pci_iov.c pci: Consistently use pci_vf_* for suballocated VF memory resources 2024-06-04 16:51:37 -07:00
pci_iov.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_iov_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pci_iov_private.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_iov_schema.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
pci_pci.c acpi/pci/vmd: Fix a nit with nested resource mapping requests 2024-06-04 16:51:14 -07:00
pci_private.h pci: Consistently use pci_vf_* for suballocated VF memory resources 2024-06-04 16:51:37 -07:00
pci_subr.c new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
pci_user.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pcib_if.m pci: Fix typo (triple S) 2023-12-27 20:24:31 -07:00
pcib_private.h new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
pcib_support.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pcireg.h pcireg.h: Add AMD IOMMU Base Cap definitions 2024-04-10 08:28:24 +03:00
pcivar.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
schema_private.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vga_pci.c new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00