Merge branches 'v3.10/topic/configs' and 'v3.10/topic/arm64-hugepages' of git://git...
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / ec.c
index 45af90a1ec1b037e49f6ab1193da905462de71e6..1ad5a4f9e0c37e74755e26ad5f7de4410718bab4 100644 (file)
@@ -175,9 +175,10 @@ static void start_transaction(struct acpi_ec *ec)
 static void advance_transaction(struct acpi_ec *ec, u8 status)
 {
        unsigned long flags;
-       struct transaction *t = ec->curr;
+       struct transaction *t;
 
        spin_lock_irqsave(&ec->lock, flags);
+       t = ec->curr;
        if (!t)
                goto unlock;
        if (t->wlen > t->wi) {