commit | 09e15086936e01d7588020be37ea724116bcefec | [log] [tgz] |
---|---|---|
author | Xiongfeng Wang <wangxiongfeng2@huawei.com> | Thu Nov 09 14:22:39 2017 +0800 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Tue Nov 14 12:54:55 2017 +0100 |
tree | ce0437f6abeba91906df5b02bfea71857f86a927 | |
parent | 04ed510988f278a69872b4cdb426e565e3236215 [diff] |
ACPI / utils: Fix memory leak in acpi_evaluate_reference() error path When package.count is larger than ACPI_MAX_HANDLES, buffer.pointer is not freed before the function returns AE_NO_MEMORY. Fix this possible memory leak by kfree'ing it. Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>