Skip to content

Commit 190b103

Browse files
committed
Merge tag 'acpi-fix-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fix from Rafael Wysocki: "This fixes a possible memory leak in an error code path in one of the utility routines (Xiongfeng Wang)" * tag 'acpi-fix-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI / utils: Fix memory leak in acpi_evaluate_reference() error path
2 parents e75080f + 09e1508 commit 190b103

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/acpi/utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ acpi_evaluate_reference(acpi_handle handle,
355355
}
356356

357357
if (package->package.count > ACPI_MAX_HANDLES) {
358+
kfree(package);
358359
return AE_NO_MEMORY;
359360
}
360361
list->count = package->package.count;

0 commit comments

Comments
 (0)