ACPICA: Events: Always modify GPE registers under the GPE lock
authorLv Zheng <lv.zheng@intel.com>
Tue, 2 Dec 2014 00:56:55 +0000 (08:56 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Dec 2014 23:29:59 +0000 (00:29 +0100)
commit7dd882195695871d6da046de036214d32f09e2ea
tree9fa9019f85181538070a7f5fd24cb4ba0b9714a8
parentc50f13c672df758b59e026c15b9118f3ed46edc4
ACPICA: Events: Always modify GPE registers under the GPE lock

It is reported that there are pieces of code invoking acpi_ev_finish_gpe()
without holding acpi_gbl_gpe_lock. Since this function will modify GPE
register values, there could be races breaking the register modification
process.

This patch fixes this issue. Lv Zheng.

Reported-by: Joe Liu <joe.liu@apple.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/evgpe.c