summaryrefslogtreecommitdiff
path: root/source/components/hardware/hwregs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/hardware/hwregs.c')
-rw-r--r--source/components/hardware/hwregs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/components/hardware/hwregs.c b/source/components/hardware/hwregs.c
index a24fc5c8b16e..94c508a84ce1 100644
--- a/source/components/hardware/hwregs.c
+++ b/source/components/hardware/hwregs.c
@@ -310,17 +310,19 @@ AcpiHwClearAcpiStatus (
Status = AcpiHwRegisterWrite (ACPI_REGISTER_PM1_STATUS,
ACPI_BITMASK_ALL_FIXED_STATUS);
+
+ AcpiOsReleaseLock (AcpiGbl_HardwareLock, LockFlags);
+
if (ACPI_FAILURE (Status))
{
- goto UnlockAndExit;
+ goto Exit;
}
/* Clear the GPE Bits in all GPE registers in all GPE blocks */
Status = AcpiEvWalkGpeList (AcpiHwClearGpeBlock, NULL);
-UnlockAndExit:
- AcpiOsReleaseLock (AcpiGbl_HardwareLock, LockFlags);
+Exit:
return_ACPI_STATUS (Status);
}