]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5860f16c718cd90caf6bf787a9d7d7e2e9954b6a
treef901d5114751f9e456522015d663f4f12b9a3167
parentfc055ffb9ba4613d9a4797599092d8090c9e08f3
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