ACPI / EC: Fix a race issue in acpi_ec_guard_event()
authorLv Zheng <lv.zheng@intel.com>
Thu, 24 Sep 2015 06:54:54 +0000 (14:54 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Sep 2015 23:46:25 +0000 (01:46 +0200)
commit611975470740b38084610e0a64ff4c6ff5aec89a
tree434854d3649eeeebc77c0371f439c0a52d5e588b
parent0700c047f66101c7d0d23e3583f1ae9c3c2dd71c
ACPI / EC: Fix a race issue in acpi_ec_guard_event()

In acpi_ec_guard_event(), EC transaction state machine variables should be
checked with the EC spinlock locked.
The bug doesn't trigger any real issue now because this bug can only occur
when the ec_event_clearing=event mode is applied while there is no user
currently using this mode.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c