diff options
author | 2013-01-24 12:49:49 +0100 | |
---|---|---|
committer | 2013-01-24 12:49:49 +0100 | |
commit | cf860be639d86ed77af179c925085ae0721ae602 (patch) | |
tree | 3acb93b90f48f2bc4838ba80cd66dce60a40825a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ACPI / PM: Fix device power state value after transitions to D3cold (diff) | |
download | linux-dev-cf860be639d86ed77af179c925085ae0721ae602.tar.xz linux-dev-cf860be639d86ed77af179c925085ae0721ae602.zip |
ACPI / scan: Prevent device add uevents from racing with user space
ACPI core adds sysfs device files after the given devices have been
registered with device_register(), which is not appropriate, because
it may lead to race conditions with user space tools using those
files.
Fix the problem by delaying the KOBJ_ADD uevent for ACPI devices
until after all of the devices' sysfs files have been created.
This also fixes a use-after-free in acpi_device_unregister().
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions