diff options
Diffstat (limited to 'drivers/acpi/acpica/utdelete.c')
-rw-r--r-- | drivers/acpi/acpica/utdelete.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/acpi/acpica/utdelete.c b/drivers/acpi/acpica/utdelete.c index 31f5a7832ef1..2a6c3e183697 100644 --- a/drivers/acpi/acpica/utdelete.c +++ b/drivers/acpi/acpica/utdelete.c | |||
@@ -5,7 +5,7 @@ | |||
5 | ******************************************************************************/ | 5 | ******************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2011, Intel Corp. | 8 | * Copyright (C) 2000 - 2012, Intel Corp. |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -215,11 +215,14 @@ static void acpi_ut_delete_internal_obj(union acpi_operand_object *object) | |||
215 | ACPI_DEBUG_PRINT((ACPI_DB_ALLOCATIONS, | 215 | ACPI_DEBUG_PRINT((ACPI_DB_ALLOCATIONS, |
216 | "***** Region %p\n", object)); | 216 | "***** Region %p\n", object)); |
217 | 217 | ||
218 | /* Invalidate the region address/length via the host OS */ | 218 | /* |
219 | 219 | * Update address_range list. However, only permanent regions | |
220 | acpi_os_invalidate_address(object->region.space_id, | 220 | * are installed in this list. (Not created within a method) |
221 | object->region.address, | 221 | */ |
222 | (acpi_size) object->region.length); | 222 | if (!(object->region.node->flags & ANOBJ_TEMPORARY)) { |
223 | acpi_ut_remove_address_range(object->region.space_id, | ||
224 | object->region.node); | ||
225 | } | ||
223 | 226 | ||
224 | second_desc = acpi_ns_get_secondary_object(object); | 227 | second_desc = acpi_ns_get_secondary_object(object); |
225 | if (second_desc) { | 228 | if (second_desc) { |