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:
John Baldwin 2010-06-08 21:27:05 +00:00
parent b9cd2f771a
commit 374d9c4d18

View File

@ -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);
}
}