aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLan Tianyu <[email protected]>2011-06-30 11:34:12 +0800
committerLen Brown <[email protected]>2011-07-14 00:06:19 -0400
commit9c921c22a7f33397a6774d7fa076db9b6a0fd669 (patch)
treeca32ce369889d8a2f0b2e5f242dd0dd670ca3376 /lib
parent6e17fb6aa1a67afa1827ae317c3594040f055730 (diff)
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 <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions