diff options
Diffstat (limited to 'drivers/acpi/acpica/nsalloc.c')
| -rw-r--r-- | drivers/acpi/acpica/nsalloc.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/nsalloc.c b/drivers/acpi/acpica/nsalloc.c index 8d3a43a061ab..1e5ff803d9ad 100644 --- a/drivers/acpi/acpica/nsalloc.c +++ b/drivers/acpi/acpica/nsalloc.c | |||
| @@ -219,12 +219,24 @@ void acpi_ns_install_node(struct acpi_walk_state *walk_state, struct acpi_namesp | |||
| 219 | 219 | ||
| 220 | ACPI_FUNCTION_TRACE(ns_install_node); | 220 | ACPI_FUNCTION_TRACE(ns_install_node); |
| 221 | 221 | ||
| 222 | /* | ||
| 223 | * Get the owner ID from the Walk state. The owner ID is used to track | ||
| 224 | * table deletion and deletion of objects created by methods. | ||
| 225 | */ | ||
| 226 | if (walk_state) { | 222 | if (walk_state) { |
| 223 | /* | ||
| 224 | * Get the owner ID from the Walk state. The owner ID is used to | ||
| 225 | * track table deletion and deletion of objects created by methods. | ||
| 226 | */ | ||
| 227 | owner_id = walk_state->owner_id; | 227 | owner_id = walk_state->owner_id; |
| 228 | |||
| 229 | if ((walk_state->method_desc) && | ||
| 230 | (parent_node != walk_state->method_node)) { | ||
| 231 | /* | ||
| 232 | * A method is creating a new node that is not a child of the | ||
| 233 | * method (it is non-local). Mark the executing method as having | ||
| 234 | * modified the namespace. This is used for cleanup when the | ||
| 235 | * method exits. | ||
| 236 | */ | ||
| 237 | walk_state->method_desc->method.flags |= | ||
| 238 | AOPOBJ_MODIFIED_NAMESPACE; | ||
| 239 | } | ||
| 228 | } | 240 | } |
| 229 | 241 | ||
| 230 | /* Link the new entry into the parent and existing children */ | 242 | /* Link the new entry into the parent and existing children */ |
