diff options
author | Hanjun Guo <guohanjun@huawei.com> | 2021-06-02 17:36:50 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-20 16:22:33 +0200 |
commit | 52b5576df51a2e00298d23889064c3c04fee5744 (patch) | |
tree | 9ec2a92d9b43317f033bc4b47de80a8ff619c394 /drivers/md/raid10.h | |
parent | d016ed2fba1d8213bd0dbc3d2305690652ecd4aa (diff) |
ACPI: bus: Call kobject_put() in acpi_init() error path
[ Upstream commit 4ac7a817f1992103d4e68e9837304f860b5e7300 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/md/raid10.h')
0 files changed, 0 insertions, 0 deletions