HomeFreeBSD

pci_host_generic: Set a valid error if allocating a range resource fails

Description

pci_host_generic: Set a valid error if allocating a range resource fails

Previously pci_host_generic_attach was returning 0 (success)
incorrectly if allocating a range failed. The error value was 0 from
the previously successful call to bus_set_resource in this case.

Fixes: d79b6b8ec267 pci_host_generic: Don't rewrite resource start address for translation

Details

Provenance
jhbAuthored on Feb 16 2024, 12:05 AM
Parents
rGe89d0785ff13: simplebus: Implement bus_delete_resource
Branches
Unknown
Tags
Unknown