Home
last modified time | relevance | path

Searched hist:"3 a391a39593b48341f0908511590a6c0e55cc069" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/acpi/
H A Dscan.cdiff 3a391a39593b48341f0908511590a6c0e55cc069 Fri Jul 12 06:45:59 CDT 2013 Rafael J. Wysocki <rafael.j.wysocki@intel.com> ACPI / scan: Do not try to attach scan handlers to devices having them

In acpi_bus_device_attach(), if there is an ACPI device object
for the given handle and that device object has a scan handler
attached to it already, there's nothing more to do for that handle.
Moreover, if acpi_scan_attach_handler() is called then, it may
execute the .attach() callback of the ACPI scan handler already
attached to the device object and that may lead to interesting
breakage.

For this reason, make acpi_bus_device_attach() return success
immediately when the handle's device object has a scan handler
attached to it.

Reported-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Cc: 3.10+ <stable@vger.kernel.org>