]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: Fix namespace race condition
authorDana Myers <dana.myers@oracle.com>
Wed, 12 Jan 2011 01:09:31 +0000 (09:09 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 19 Jan 2011 04:47:41 +0000 (23:47 -0500)
commitb9e831f7693d061ad6b765b43687d36d93154e10
tree1d2ebc9b9aa6b4644247cd230d16d889f7daf4a4
parent741b88d309fcab02ba73198bfdd3d30546c5e874
ACPICA: Fix namespace race condition

Fixes a race condition between method execution and namespace
walks that can possibly fault. Problem was apparently introduced
in version 20100528 as a result of a performance optimization
that reduces the number of namespace walks upon method exit
by using the delete_namespace_subtree function instead of the
delete_namespace_by_owner function used previously. Bug is in
the delete_namespace_subtree function.

Signed-off-by: Dana Myers <dana.myers@oracle.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Reviewed-by: Rafael Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/nsalloc.c