Delete the region we are passed if that is the requested operation.

This should fix the problem with removing an address space handler
although we don't currently use that capability so it's unlikely anyone
saw this problem.
This commit is contained in:
Nate Lawson 2004-01-03 02:01:39 +00:00
parent 00fff2c71a
commit 16844a97c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124091

View File

@ -697,9 +697,13 @@ EcSpaceSetup(ACPI_HANDLE Region, UINT32 Function, void *Context,
ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
/*
* Just pass the context through, there's nothing to do here.
* If deactivating a region, always set the output to NULL. Otherwise,
* just pass the context through.
*/
*RegionContext = Context;
if (Function == ACPI_REGION_DEACTIVATE)
*RegionContext = NULL;
else
*RegionContext = Context;
return_ACPI_STATUS (AE_OK);
}