diff options
Diffstat (limited to 'drivers')
-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 a06d98374705..15986f32009e 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -175,9 +175,10 @@ static void start_transaction(struct acpi_ec *ec) | |||
175 | static void advance_transaction(struct acpi_ec *ec, u8 status) | 175 | static void advance_transaction(struct acpi_ec *ec, u8 status) |
176 | { | 176 | { |
177 | unsigned long flags; | 177 | unsigned long flags; |
178 | struct transaction *t = ec->curr; | 178 | struct transaction *t; |
179 | 179 | ||
180 | spin_lock_irqsave(&ec->lock, flags); | 180 | spin_lock_irqsave(&ec->lock, flags); |
181 | t = ec->curr; | ||
181 | if (!t) | 182 | if (!t) |
182 | goto unlock; | 183 | goto unlock; |
183 | if (t->wlen > t->wi) { | 184 | if (t->wlen > t->wi) { |