We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3b4664 commit 89c74d6Copy full SHA for 89c74d6
drivers/acpi/acpica/nseval.c
@@ -308,6 +308,14 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info)
308
/* Map AE_CTRL_RETURN_VALUE to AE_OK, we are done with it */
309
310
status = AE_OK;
311
+ } else if (ACPI_FAILURE(status)) {
312
+
313
+ /* If return_object exists, delete it */
314
315
+ if (info->return_object) {
316
+ acpi_ut_remove_reference(info->return_object);
317
+ info->return_object = NULL;
318
+ }
319
}
320
321
ACPI_DEBUG_PRINT((ACPI_DB_NAMES,
0 commit comments