Page MenuHomeFreeBSD

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

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



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 ( 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

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
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.