]> git.baikalelectronics.ru Git - kernel.git/commit
acpi: bus: check once more for an empty list after locking it
authorChuck Ebbert <cebbert@redhat.com>
Tue, 15 Apr 2008 21:34:47 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Apr 2008 02:35:41 +0000 (19:35 -0700)
commita1db3ceae312c864a31674d5c874cb7b97e6d854
treedb808d329fc56dee2c518a3964f94e25af9941d3
parent2ed089bd32603bfbb3e0dd6bca566186178d58c2
acpi: bus: check once more for an empty list after locking it

List could have become empty after the unlocked check that was made earlier,
so check again inside the lock.

Should fix https://bugzilla.redhat.com/show_bug.cgi?id=427765

Signed-off-by: Chuck Ebbert <cebbert@redhat.com>
Cc: <stable@kernel.org>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/bus.c