commit | 4ac7a817f1992103d4e68e9837304f860b5e7300 | [log] [tgz] |
---|---|---|
author | Hanjun Guo <guohanjun@huawei.com> | Wed Jun 02 17:36:50 2021 +0800 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Mon Jun 07 15:44:26 2021 +0200 |
tree | 849c2ae4fa14c123ea624d4649242df6eee4b759 | |
parent | 9b64560134a0032d2de6bb565a76418ad90386fe [diff] |
ACPI: bus: Call kobject_put() in acpi_init() error path Although the system will not be in a good condition or it will not boot if acpi_bus_init() fails, it is still necessary to put the kobject in the error path before returning to avoid leaking memory. Signed-off-by: Hanjun Guo <guohanjun@huawei.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>