diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-07-07 21:14:43 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-07-07 21:14:43 +0000 |
| commit | 6cfc526e7f91534db46a3cff3c2dd2744310e24f (patch) | |
| tree | 81c9d8e2ba2fbd279337ab5d1eb657247dd5e643 | |
| parent | 81bab70dc6205032e58d15a87ccc8549f900316d (diff) | |
acpi: fix instant panic in hest_attach()
Since now there is a pseudo-bus between our device and acpi0, we need to
go deeper.
Fixes: 9313f6b01485ad9a0b7cc59b459f5714533587c3
| -rw-r--r-- | sys/dev/acpica/acpi_apei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_apei.c b/sys/dev/acpica/acpi_apei.c index 09073207c06e..9e5a691c8655 100644 --- a/sys/dev/acpica/acpi_apei.c +++ b/sys/dev/acpica/acpi_apei.c @@ -615,7 +615,7 @@ hest_attach(device_t dev) if (!apei_sysctl_tree) { /* Install hw.acpi.apei sysctl tree */ - acpi_sc = acpi_device_get_parent_softc(dev); + acpi_sc = acpi_device_get_parent_softc(device_get_parent(dev)); apei_sysctl_tree = SYSCTL_ADD_NODE(&apei_sysctl_ctx, SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree), OID_AUTO, "apei", CTLFLAG_RD | CTLFLAG_MPSAFE, 0, |
