Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 199e9e7d authored by Alexey Starikovskiy's avatar Alexey Starikovskiy Committed by Len Brown
Browse files

ACPI EC: remove potential deadlock from EC

parent 0a524509
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;