Pull fluff into release branch
[sfrench/cifs-2.6.git] / drivers / acpi / ec.c
index c1f6251a80a3fd7b751010e29c5c96b3e365857b..ab688837379534b46ab194dacb41925215c3670b 100644 (file)
@@ -279,8 +279,10 @@ static int acpi_ec_transaction(struct acpi_ec *ec, u8 command,
        mutex_lock(&ec->lock);
        if (ec->global_lock) {
                status = acpi_acquire_global_lock(ACPI_EC_UDELAY_GLK, &glk);
-               if (ACPI_FAILURE(status))
+               if (ACPI_FAILURE(status)) {
+                       mutex_unlock(&ec->lock);
                        return -ENODEV;
+               }
        }
 
        /* Make sure GPE is enabled before doing transaction */