diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2007-08-10 16:45:18 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-08-11 22:26:24 -0400 |
commit | 199e9e7d1106686a85ee9fdf6a824051aa82682e (patch) | |
tree | e3fe8cdbc1d561e890ccdfc34a40ae860f4451ba /drivers | |
parent | 0a5245099819b0ae0a8e985f54909ba8414faba5 (diff) |
ACPI EC: remove potential deadlock from EC
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/ec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index b28b56524f0b..2300d81bbc4e 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -710,9 +710,7 @@ static int acpi_ec_add(struct acpi_device *device) | |||
710 | /* Check if we found the boot EC */ | 710 | /* Check if we found the boot EC */ |
711 | if (boot_ec) { | 711 | if (boot_ec) { |
712 | if (boot_ec->gpe == ec->gpe) { | 712 | if (boot_ec->gpe == ec->gpe) { |
713 | mutex_lock(&boot_ec->lock); | ||
714 | ec_remove_handlers(boot_ec); | 713 | ec_remove_handlers(boot_ec); |
715 | mutex_unlock(&boot_ec->lock); | ||
716 | mutex_destroy(&boot_ec->lock); | 714 | mutex_destroy(&boot_ec->lock); |
717 | kfree(boot_ec); | 715 | kfree(boot_ec); |
718 | first_ec = boot_ec = NULL; | 716 | first_ec = boot_ec = NULL; |