commit | dcaea2c18e43976477507c1bb5449278b4bf22b2 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Tue Nov 19 01:06:06 2013 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Tue Nov 19 01:06:06 2013 +0100 |
tree | b02f615347d179ba0c74afeaff467c8be70a5581 | |
parent | 614d7426ec109501e9e77be66963caf3041e566c [diff] | |
parent | 36b15875a7819a2ec4cb5748ff7096ad7bd86cbb [diff] |
Merge branch 'acpi-ec' * acpi-ec: ACPI / EC: Ensure lock is acquired before accessing ec struct members
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index d5309fd..ba5b56d 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c
@@ -173,9 +173,10 @@ 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) {