diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-04-14 13:25:37 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-04-14 13:25:37 +0000 |
| commit | 8c941e313e3925b17e49b093244c159db7a112f8 (patch) | |
| tree | a11b361b718536ed0964b8e6e1a849aa36b2d49f | |
| parent | 998d501ae61a3e3c800e6d102d8ab5253c7c1b91 (diff) | |
acpi_apm: Don't recurse on ACPI_LOCK in apmreadfilt
The lock is already held by the caller since it is used as the knlist
lock.
PR: 293901
Reported by: Jiaming Zhang <r772577952@gmail.com>
Fixes: cc2715cf1f86 ("acpi_apm: Narrow scope of ACPI_LOCK")
| -rw-r--r-- | sys/x86/acpica/acpi_apm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/x86/acpica/acpi_apm.c b/sys/x86/acpica/acpi_apm.c index 71e2573d5fde..e9db0c090f5c 100644 --- a/sys/x86/acpica/acpi_apm.c +++ b/sys/x86/acpica/acpi_apm.c @@ -430,9 +430,7 @@ apmreadfilt(struct knote *kn, long hint) int sleeping; clone = kn->kn_hook; - ACPI_LOCK(acpi); sleeping = clone->acpi_sc->acpi_next_stype != POWER_STYPE_AWAKE; - ACPI_UNLOCK(acpi); return (sleeping); } |
