Author: jhb
Date: Tue Jun  8 21:27:05 2010
New Revision: 208925
URL: http://svn.freebsd.org/changeset/base/208925

Log:
  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

Modified:
  head/sys/dev/acpica/acpi.c

Modified: head/sys/dev/acpica/acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi.c  Tue Jun  8 19:36:41 2010        (r208924)
+++ head/sys/dev/acpica/acpi.c  Tue Jun  8 21:27:05 2010        (r208925)
@@ -2346,7 +2346,7 @@ acpi_ReqSleepState(struct acpi_softc *sc
        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);
        }
     }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to