HomeFreeBSD

acpi: Don't assume a resource is reserved in acpi_delete_resource

Description

acpi: Don't assume a resource is reserved in acpi_delete_resource

This fixes a panic if a driver uses bus_set_resource to add a resource
that fails to reserve and then deletes the resource via
bus_delete_resource.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D43891

(cherry picked from commit e05436d577de98944b97b9cf510b29c4d2091b3f)

Details

Provenance
jhbAuthored on Feb 14 2024, 10:07 PM
Reviewer
imp
Differential Revision
D43891: acpi: Don't assume a resource is reserved in acpi_delete_resource
Parents
rG55c2c62f108a: acpi: Allow child drivers to use bus_set_resource for more resources
Branches
Unknown
Tags
Unknown