From: Alexey Starikovskiy Date: Fri, 10 Aug 2007 20:45:18 +0000 (-0700) Subject: ACPI EC: remove potential deadlock from EC X-Git-Tag: v2.6.23-rc3~5^2~3^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=199e9e7d1106686a85ee9fdf6a824051aa82682e;p=linux-2.6 ACPI EC: remove potential deadlock from EC Signed-off-by: Alexey Starikovskiy Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index b28b56524f..2300d81bbc 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -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;