diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2019-04-05 22:45:01 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2019-04-05 22:45:01 +0000 |
| commit | a4d090d50dca12716fbca0cc738e692a0db75068 (patch) | |
| tree | 13c8f19a527d6be9080917cf0bddbfe06103e99f /source/components | |
| parent | 222d1f49264d00972299c6ff23de8100be561897 (diff) | |
Notes
Diffstat (limited to 'source/components')
| -rw-r--r-- | source/components/events/evgpe.c | 8 | ||||
| -rw-r--r-- | source/components/namespace/nsalloc.c | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/source/components/events/evgpe.c b/source/components/events/evgpe.c index f5ea992a270b..7534f6d75025 100644 --- a/source/components/events/evgpe.c +++ b/source/components/events/evgpe.c @@ -240,6 +240,14 @@ AcpiEvEnableGpe ( ACPI_FUNCTION_TRACE (EvEnableGpe); + /* Clear the GPE (of stale events) */ + + Status = AcpiHwClearGpe(GpeEventInfo); + if (ACPI_FAILURE(Status)) + { + return_ACPI_STATUS(Status); + } + /* Enable the requested GPE */ Status = AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_ENABLE); diff --git a/source/components/namespace/nsalloc.c b/source/components/namespace/nsalloc.c index ff178d491bbc..127723081a31 100644 --- a/source/components/namespace/nsalloc.c +++ b/source/components/namespace/nsalloc.c @@ -232,6 +232,11 @@ AcpiNsDeleteNode ( ACPI_FUNCTION_NAME (NsDeleteNode); + if (!Node) + { + return_VOID; + } + /* Detach an object if there is one */ AcpiNsDetachObject (Node); |
