aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/nsalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/nsalloc.c')
-rw-r--r--drivers/acpi/acpica/nsalloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/nsalloc.c b/drivers/acpi/acpica/nsalloc.c
index bc3f598257a2..fd1ff54cda19 100644
--- a/drivers/acpi/acpica/nsalloc.c
+++ b/drivers/acpi/acpica/nsalloc.c
@@ -134,6 +134,12 @@ void acpi_ns_delete_node(struct acpi_namespace_node *node)
134 obj_desc = next_desc; 134 obj_desc = next_desc;
135 } 135 }
136 136
137 /* Special case for the statically allocated root node */
138
139 if (node == acpi_gbl_root_node) {
140 return;
141 }
142
137 /* Now we can delete the node */ 143 /* Now we can delete the node */
138 144
139 (void)acpi_os_release_object(acpi_gbl_namespace_cache, node); 145 (void)acpi_os_release_object(acpi_gbl_namespace_cache, node);