diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/ec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index d5309fd49458..ba5b56db9d27 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -173,9 +173,10 @@ static void start_transaction(struct acpi_ec *ec) | |||
173 | static void advance_transaction(struct acpi_ec *ec, u8 status) | 173 | static void advance_transaction(struct acpi_ec *ec, u8 status) |
174 | { | 174 | { |
175 | unsigned long flags; | 175 | unsigned long flags; |
176 | struct transaction *t = ec->curr; | 176 | struct transaction *t; |
177 | 177 | ||
178 | spin_lock_irqsave(&ec->lock, flags); | 178 | spin_lock_irqsave(&ec->lock, flags); |
179 | t = ec->curr; | ||
179 | if (!t) | 180 | if (!t) |
180 | goto unlock; | 181 | goto unlock; |
181 | if (t->wlen > t->wi) { | 182 | if (t->wlen > t->wi) { |