Skip to content

Commit c3e2f9b

Browse files
committed
Merge tag 'acpi-6.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fix from Rafael Wysocki: "Fix a possible crash on an attempt to free unallocated memory in the error path of acpi_evaluate_reference() that has been introduced by one of the recent changes (Rafael Wysocki)" * tag 'acpi-6.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: utils: Fix error path in acpi_evaluate_reference()
2 parents 0dfe14f + 8f0b960 commit c3e2f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,13 @@ acpi_evaluate_reference(acpi_handle handle,
399399
acpi_handle_debug(list->handles[i], "Found in reference list\n");
400400
}
401401

402-
end:
403402
if (ACPI_FAILURE(status)) {
404403
list->count = 0;
405404
kfree(list->handles);
406405
list->handles = NULL;
407406
}
408407

408+
end:
409409
kfree(buffer.pointer);
410410

411411
return status;

0 commit comments

Comments
 (0)