Page MenuHomeFreeBSD

pci: Only add special VF handling for direct children in bus methods
ClosedPublic

Authored by jhb on Jun 5 2024, 3:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 1, 3:45 AM
Unknown Object (File)
Tue, Dec 31, 3:35 AM
Unknown Object (File)
Mon, Dec 30, 4:07 AM
Unknown Object (File)
Sun, Dec 29, 4:46 AM
Unknown Object (File)
Sat, Dec 28, 2:51 AM
Unknown Object (File)
Fri, Dec 27, 12:49 PM
Unknown Object (File)
Dec 26 2024, 10:52 AM
Unknown Object (File)
Nov 15 2024, 2:13 PM
Subscribers
None

Details

Summary

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)
Fixes: 871b33ad65ba pci: Consistently use pci_vf_* for suballocated VF memory resources

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable