提交 199e9e7d 编写于 作者: A Alexey Starikovskiy 提交者: Len Brown

ACPI EC: remove potential deadlock from EC

Signed-off-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 0a524509
......@@ -710,9 +710,7 @@ static int acpi_ec_add(struct acpi_device *device)
/* Check if we found the boot EC */
if (boot_ec) {
if (boot_ec->gpe == ec->gpe) {
mutex_lock(&boot_ec->lock);
ec_remove_handlers(boot_ec);
mutex_unlock(&boot_ec->lock);
mutex_destroy(&boot_ec->lock);
kfree(boot_ec);
first_ec = boot_ec = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册