summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/parser/pswalk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/parser/pswalk.c')
-rw-r--r--drivers/acpi/parser/pswalk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/parser/pswalk.c b/drivers/acpi/parser/pswalk.c
index 06f05bfd761..3d08b8c6db4 100644
--- a/drivers/acpi/parser/pswalk.c
+++ b/drivers/acpi/parser/pswalk.c
@@ -69,13 +69,16 @@ void acpi_ps_delete_parse_tree(union acpi_parse_object *subtree_root)
/* Visit all nodes in the subtree */
while (op) {
+
/* Check if we are not ascending */
if (op != parent) {
+
/* Look for an argument or child of the current op */
next = acpi_ps_get_arg(op, 0);
if (next) {
+
/* Still going downward in tree (Op is not completed yet) */
op = next;