RE: [PATCH 04/13] ACPI/IPMI: Fix race caused by the unprotected ACPI IPMI user

2013-07-25 Thread Zheng, Lv
> From: Rafael J. Wysocki [mailto:r...@sisk.pl] > Sent: Friday, July 26, 2013 5:59 AM > > On Tuesday, July 23, 2013 04:09:26 PM Lv Zheng wrote: > > This patch uses reference counting to fix the race caused by the > > unprotected ACPI IPMI user. > > > > As the acpi_ipmi_device->user_interface check

Re: [PATCH 04/13] ACPI/IPMI: Fix race caused by the unprotected ACPI IPMI user

2013-07-25 Thread Rafael J. Wysocki
On Tuesday, July 23, 2013 04:09:26 PM Lv Zheng wrote: > This patch uses reference counting to fix the race caused by the > unprotected ACPI IPMI user. > > As the acpi_ipmi_device->user_interface check in acpi_ipmi_space_handler() > can happen before setting user_interface to NULL and codes after t

[PATCH 04/13] ACPI/IPMI: Fix race caused by the unprotected ACPI IPMI user

2013-07-23 Thread Lv Zheng
This patch uses reference counting to fix the race caused by the unprotected ACPI IPMI user. As the acpi_ipmi_device->user_interface check in acpi_ipmi_space_handler() can happen before setting user_interface to NULL and codes after the check in acpi_ipmi_space_handler() can happen after user_inte