summaryrefslogtreecommitdiff
path: root/source/components/resources/rsxface.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/resources/rsxface.c')
-rw-r--r--source/components/resources/rsxface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/components/resources/rsxface.c b/source/components/resources/rsxface.c
index 2ae63b37b..b6111f7ff 100644
--- a/source/components/resources/rsxface.c
+++ b/source/components/resources/rsxface.c
@@ -795,6 +795,12 @@ AcpiWalkResources (
return_ACPI_STATUS (AE_BAD_PARAMETER);
}
+ /* Validate the device handle, it can be unloaded meantime */
+ if (!AcpiNsValidateHandle (DeviceHandle))
+ {
+ return_ACPI_STATUS (AE_BAD_PARAMETER);
+ }
+
/* Get the _CRS/_PRS/_AEI resource list */
Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;