projects/linux·commit c3e2f9bd

Merge tag 'acpi-6.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

c3e2f9bd · Linus Torvalds <[email protected]> · 2023-12-08 11:54:07 -08:00

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()
Commit
c3e2f9bda2ffa2dd7dcaf2b45604db08c6ab0579
Parents
0dfe14fc · 8f0b960a

Merge commit. Changes below are compared with the first parent: 0dfe14fc.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/acpi/utils.cmodified+1−1View file

drivers/acpi/utils.c

View file
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 28c7524..62944e3 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -399,13 +399,13 @@ acpi_evaluate_reference(acpi_handle handle,
acpi_handle_debug(list->handles[i], "Found in reference list\n");
}
-end:
if (ACPI_FAILURE(status)) {
list->count = 0;
kfree(list->handles);
list->handles = NULL;
}
+end:
kfree(buffer.pointer);
return status;