The lock associated with the /dev/apm knote is already held, so use
KNOTE_LOCKED() instead of KNOTE_UNLOCKED(). Reported by: mav MFC after: 3 days
This commit is contained in:
parent
b9cd2f771a
commit
374d9c4d18
@ -2346,7 +2346,7 @@ acpi_ReqSleepState(struct acpi_softc *sc, int state)
|
||||
clone->notify_status = APM_EV_NONE;
|
||||
if ((clone->flags & ACPI_EVF_DEVD) == 0) {
|
||||
selwakeuppri(&clone->sel_read, PZERO);
|
||||
KNOTE_UNLOCKED(&clone->sel_read.si_note, 0);
|
||||
KNOTE_LOCKED(&clone->sel_read.si_note, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user