From: Rafael J. Wysocki Date: Thu, 24 Jan 2013 11:49:49 +0000 (+0100) Subject: ACPI / scan: Prevent device add uevents from racing with user space X-Git-Tag: v3.9-rc1~146^2~10^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf860be639d86ed77af179c925085ae0721ae602;p=pandora-kernel.git 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 Acked-by: Greg Kroah-Hartman --- Reading git-diff-tree failed