Page MenuHomeFreeBSD

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

Authored by jhb on Feb 14 2024, 6:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 12:40 AM
Unknown Object (File)
Wed, Dec 18, 11:21 AM
Unknown Object (File)
Nov 29 2024, 9:48 PM
Unknown Object (File)
Nov 23 2024, 2:17 AM
Unknown Object (File)
Nov 22 2024, 7:11 PM
Unknown Object (File)
Nov 11 2024, 9:45 AM
Unknown Object (File)
Nov 7 2024, 12:30 AM
Unknown Object (File)
Nov 6 2024, 10:36 PM
Subscribers

Details

Summary

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.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Feb 14 2024, 7:10 PM

I'm surprised this hasn't bitten sooner

In D43891#1001335, @imp wrote:

I'm surprised this hasn't bitten sooner

Very few things use bus_delete_resource. I only hit this when I ran into the ram0 problem and my changes to pci_host_generic caused a bridge to fail to probe when it couldn't allocate its window,