diff options
Diffstat (limited to 'source/components/events/evhandler.c')
-rw-r--r-- | source/components/events/evhandler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/components/events/evhandler.c b/source/components/events/evhandler.c index d17411e94..3ab44acee 100644 --- a/source/components/events/evhandler.c +++ b/source/components/events/evhandler.c @@ -458,6 +458,12 @@ AcpiEvInstallSpaceHandler ( goto UnlockAndExit; } + if (!AcpiIsValidSpaceId (SpaceId)) + { + Status = AE_BAD_PARAMETER; + goto UnlockAndExit; + } + if (Handler == ACPI_DEFAULT_HANDLER) { Flags = ACPI_ADDR_HANDLER_DEFAULT_INSTALLED; |