History

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()

Linus Torvalds committed 2 years ago

Commit c3e2f9b2 parents 0dfe14f 8f0b9601 file · +1 −1Browse files

Unified · Split

drivers/acpi/utils.c+1−1
@@ -399,13 +399,13 @@ acpi_evaluate_reference(acpi_handle handle, · 398 unmodified lines
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;