]> err.no Git - linux-2.6/blobdiff - drivers/acpi/executer/exresop.c
ACPICA 20050708 from Bob Moore <robert.moore@intel.com>
[linux-2.6] / drivers / acpi / executer / exresop.c
index d8b470eefe7a5832cd0eec7d66bab5794338d892..aaba7abcb52db92a038ad718075dd3c75aa9fc7d 100644 (file)
@@ -426,6 +426,10 @@ acpi_ex_resolve_operands (
 
                                return_ACPI_STATUS (status);
                        }
+
+                       if (obj_desc != *stack_ptr) {
+                               acpi_ut_remove_reference (obj_desc);
+                       }
                        goto next_operand;
 
 
@@ -448,6 +452,10 @@ acpi_ex_resolve_operands (
 
                                return_ACPI_STATUS (status);
                        }
+
+                       if (obj_desc != *stack_ptr) {
+                               acpi_ut_remove_reference (obj_desc);
+                       }
                        goto next_operand;
 
 
@@ -471,6 +479,10 @@ acpi_ex_resolve_operands (
 
                                return_ACPI_STATUS (status);
                        }
+
+                       if (obj_desc != *stack_ptr) {
+                               acpi_ut_remove_reference (obj_desc);
+                       }
                        goto next_operand;
 
 
@@ -515,6 +527,10 @@ acpi_ex_resolve_operands (
                                if (ACPI_FAILURE (status)) {
                                        return_ACPI_STATUS (status);
                                }
+
+                               if (obj_desc != *stack_ptr) {
+                                       acpi_ut_remove_reference (obj_desc);
+                               }
                                break;
 
                        default: