|
@@ -1001,5 +1001,11 @@ acpi_ut_copy_iobject_to_iobject(union acpi_operand_object *source_desc,
|
|
status = acpi_ut_copy_simple_object(source_desc, *dest_desc);
|
|
status = acpi_ut_copy_simple_object(source_desc, *dest_desc);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* Delete the allocated object if copy failed */
|
|
|
|
+
|
|
|
|
+ if (ACPI_FAILURE(status)) {
|
|
|
|
+ acpi_ut_remove_reference(*dest_desc);
|
|
|
|
+ }
|
|
|
|
+
|
|
return_ACPI_STATUS(status);
|
|
return_ACPI_STATUS(status);
|
|
}
|
|
}
|