Page MenuHomeFreeBSD

[acpi] Fix stalled value returned by acpi_get_device() after newbus device has been deleted
ClosedPublic

Authored by wulf on Dec 21 2019, 9:36 PM.

Details

Summary

Newbus device reference attached to ACPI handle is not cleared when newbus device is deleted with devctl(8) delete command. That leads to kernel crashes in iicbus ACPI-based enumerator (https://reviews.freebsd.org/D22901) after acpibus-hosted device has been deleted.
Fix that with calling of AcpiDetachData() from "child_deleted" bus method exactly like acpi_pci driver does.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 9 2020, 8:27 PM
This revision was automatically updated to reflect the committed changes.