From: Lan Tianyu Date: Thu, 30 Jun 2011 03:34:12 +0000 (+0800) Subject: ACPI / Battery: Resolve the race condition in the sysfs_remove_battery() X-Git-Tag: v3.1-rc1~80^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c921c22a7f33397a6774d7fa076db9b6a0fd669;p=pandora-kernel.git ACPI / Battery: Resolve the race condition in the sysfs_remove_battery() Use battery->lock in sysfs_remove_battery() to make checking, removing, and clearing bat.dev atomic. This is necessary because sysfs_remove_battery() may be invoked concurrently from different paths. https://bugzilla.kernel.org/show_bug.cgi?id=35642 Signed-off-by: Lan Tianyu Signed-off-by: Len Brown --- Reading git-diff-tree failed