Skip to contentSkip to conversation

ACPI EC: remove potential deadlock from EC

PATCH Applied [email protected] 2 participants 2 messages Aug 10, 2007 – Aug 12, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 6/6 ACPI EC: remove potential deadlock from EC

From: Alexey Starikovskiy <[email protected]>

---

 drivers/acpi/ec.c |    2 --
 1 files changed, 2 deletions(-)
drivers/acpi/ec.c renamed from drivers/acpi/ec.c~acpi-ec-remove-potential-deadlock-from-ec +0 -2
diff -puN drivers/acpi/ec.c~acpi-ec-remove-potential-deadlock-from-ec drivers/acpi/ec.c
@@ -710,9 +710,7 @@ static int acpi_ec_add(struct acpi_devic
 	/* 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;

_

reviewer Applied
#1 lore raw

Applied
(with From: e-mail address typo fixed)

thanks,
-Len

Quoted 28 lines · On Friday 10 August 2007 16:45, [email protected] wrote:

From: Alexey Starikovskiy <[email protected]>

---

 drivers/acpi/ec.c |    2 --
 1 files changed, 2 deletions(-)

diff -puN drivers/acpi/ec.c~acpi-ec-remove-potential-deadlock-from-ec drivers/acpi/ec.c

drivers/acpi/ec.c renamed from drivers/acpi/ec.c~acpi-ec-remove-potential-deadlock-from-ec +0 -2
@@ -710,9 +710,7 @@ static int acpi_ec_add(struct acpi_devic
 	/* 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;

_
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html