evxfregn.c (193529) | evxfregn.c (200553) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: evxfregn - External Interfaces, ACPI Operation Regions and 4 * Address Spaces. 5 * 6 *****************************************************************************/ 7 8/****************************************************************************** --- 157 unchanged lines hidden (view full) --- 166 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); 167 if (ACPI_FAILURE (Status)) 168 { 169 return_ACPI_STATUS (Status); 170 } 171 172 /* Convert and validate the device handle */ 173 | 1/****************************************************************************** 2 * 3 * Module Name: evxfregn - External Interfaces, ACPI Operation Regions and 4 * Address Spaces. 5 * 6 *****************************************************************************/ 7 8/****************************************************************************** --- 157 unchanged lines hidden (view full) --- 166 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); 167 if (ACPI_FAILURE (Status)) 168 { 169 return_ACPI_STATUS (Status); 170 } 171 172 /* Convert and validate the device handle */ 173 |
174 Node = AcpiNsMapHandleToNode (Device); | 174 Node = AcpiNsValidateHandle (Device); |
175 if (!Node) 176 { 177 Status = AE_BAD_PARAMETER; 178 goto UnlockAndExit; 179 } 180 181 /* Install the handler for all Regions for this Space ID */ 182 --- 56 unchanged lines hidden (view full) --- 239 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); 240 if (ACPI_FAILURE (Status)) 241 { 242 return_ACPI_STATUS (Status); 243 } 244 245 /* Convert and validate the device handle */ 246 | 175 if (!Node) 176 { 177 Status = AE_BAD_PARAMETER; 178 goto UnlockAndExit; 179 } 180 181 /* Install the handler for all Regions for this Space ID */ 182 --- 56 unchanged lines hidden (view full) --- 239 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); 240 if (ACPI_FAILURE (Status)) 241 { 242 return_ACPI_STATUS (Status); 243 } 244 245 /* Convert and validate the device handle */ 246 |
247 Node = AcpiNsMapHandleToNode (Device); | 247 Node = AcpiNsValidateHandle (Device); |
248 if (!Node || 249 ((Node->Type != ACPI_TYPE_DEVICE) && 250 (Node->Type != ACPI_TYPE_PROCESSOR) && 251 (Node->Type != ACPI_TYPE_THERMAL) && 252 (Node != AcpiGbl_RootNode))) 253 { 254 Status = AE_BAD_PARAMETER; 255 goto UnlockAndExit; --- 91 unchanged lines hidden --- | 248 if (!Node || 249 ((Node->Type != ACPI_TYPE_DEVICE) && 250 (Node->Type != ACPI_TYPE_PROCESSOR) && 251 (Node->Type != ACPI_TYPE_THERMAL) && 252 (Node != AcpiGbl_RootNode))) 253 { 254 Status = AE_BAD_PARAMETER; 255 goto UnlockAndExit; --- 91 unchanged lines hidden --- |