ACPI: ipmi: Remove address space handler in error path
authorHanjun Guo <guohanjun@huawei.com>
Mon, 24 May 2021 08:35:08 +0000 (16:35 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 24 May 2021 14:27:34 +0000 (16:27 +0200)
commit64887bbddae56cb808089a7b3d5247d1a71a1e7e
treef901d5114751f9e456522015d663f4f12b9a3167
parentf00d2d32cc6766fdc03ccfc865f08cc081df5b5f
ACPI: ipmi: Remove address space handler in error path

The acpi_install_address_space_handler() is coupled with
acpi_remove_address_space_handler() in ipmi module init/exit, but
it forgets to remove the handler in acpi_ipmi_init() if the
ipmi_smi_watcher_register() call fails, so add the removal of the
address space handler in error path.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_ipmi.c