“65376df582174ffcec9e6471bf5b0dd79ba05e4a”上不存在“git@gitcode.net:openanolis/cloud-kernel.git”
提交 190b1036 编写于 作者: L Linus Torvalds

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
无相关合并请求
...@@ -355,6 +355,7 @@ acpi_evaluate_reference(acpi_handle handle, ...@@ -355,6 +355,7 @@ acpi_evaluate_reference(acpi_handle handle,
} }
if (package->package.count > ACPI_MAX_HANDLES) { if (package->package.count > ACPI_MAX_HANDLES) {
kfree(package);
return AE_NO_MEMORY; return AE_NO_MEMORY;
} }
list->count = package->package.count; list->count = package->package.count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部