mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
56b822a17c
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:
|
||
---|---|---|
.. | ||
controller | ||
fixup_pci.c | ||
hostb_pci.c | ||
ignore_pci.c | ||
isa_pci.c | ||
pci.c | ||
pci_dw.c | ||
pci_dw.h | ||
pci_dw_if.m | ||
pci_dw_mv.c | ||
pci_host_generic.c | ||
pci_host_generic.h | ||
pci_host_generic_acpi.c | ||
pci_host_generic_acpi.h | ||
pci_host_generic_den0115.c | ||
pci_host_generic_fdt.c | ||
pci_host_generic_fdt.h | ||
pci_if.m | ||
pci_iov.c | ||
pci_iov.h | ||
pci_iov_if.m | ||
pci_iov_private.h | ||
pci_iov_schema.c | ||
pci_pci.c | ||
pci_private.h | ||
pci_subr.c | ||
pci_user.c | ||
pcib_if.m | ||
pcib_private.h | ||
pcib_support.c | ||
pcireg.h | ||
pcivar.h | ||
schema_private.h | ||
vga_pci.c |