ACPI / IPMI: Fix race caused by the timed out ACPI IPMI transfers
authorLv Zheng <lv.zheng@intel.com>
Fri, 13 Sep 2013 05:13:47 +0000 (13:13 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Sep 2013 17:46:11 +0000 (19:46 +0200)
commit8584ec6ae9cc386de344e0d33b60f76368bb73ab
tree46ad6a2073010c20981b8b16e58b35e689c29603
parent5ac557ef4951ea4b131ae45b08434546cb386ac5
ACPI / IPMI: Fix race caused by the timed out ACPI IPMI transfers

This patch fixes races caused by timed out ACPI IPMI transfers.

This patch uses timeout mechanism provided by ipmi_si to avoid the race
that the msg_done flag is set but without any protection, its content can
be invalid.  Thanks for the suggestion of Corey Minyard.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Reviewed-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_ipmi.c