Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/intel-public/acpica/dist/events previous fixed ...



details:   https://anonhg.NetBSD.org/src/rev/fc3edba46f53
branches:  trunk
changeset: 758867:fc3edba46f53
user:      cegger <cegger%NetBSD.org@localhost>
date:      Thu Nov 18 18:16:15 2010 +0000

description:
previous fixed one HP laptop and broke an other HP laptop.
The one which got fixed RuntimeCount is 1. The one which broke RuntimeCount is 0.
So only decrement RuntimeCount when RuntimeCount is non-zero.

diffstat:

 sys/external/intel-public/acpica/dist/events/evxface.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 23f8b1618bba -r fc3edba46f53 sys/external/intel-public/acpica/dist/events/evxface.c
--- a/sys/external/intel-public/acpica/dist/events/evxface.c    Thu Nov 18 18:12:23 2010 +0000
+++ b/sys/external/intel-public/acpica/dist/events/evxface.c    Thu Nov 18 18:16:15 2010 +0000
@@ -749,7 +749,8 @@
 
     /* Disable the GPE before installing the handler */
 
-    GpeEventInfo->RuntimeCount--;
+    if (GpeEventInfo->RuntimeCount)
+        GpeEventInfo->RuntimeCount--;
     Status = AcpiEvDisableGpe (GpeEventInfo);
     if (ACPI_FAILURE (Status))
     {



Home | Main Index | Thread Index | Old Index