Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPICA: Fix for Load operator, load table at the namespace root

This reverts a change introduced in version 20071019. The table
is now loaded at the namespace root even though this goes against
the ACPI specification. This provides compatibility with other
ACPI implementations.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Bob Moore and committed by
Len Brown
0bda3f2f bc45b1d3

+8 -2
+8 -2
drivers/acpi/executer/exconfig.c
··· 375 375 goto cleanup; 376 376 } 377 377 378 + /* 379 + * Add the table to the namespace. 380 + * 381 + * Note: We load the table objects relative to the root of the namespace. 382 + * This appears to go against the ACPI specification, but we do it for 383 + * compatibility with other ACPI implementations. 384 + */ 378 385 status = 379 - acpi_ex_add_table(table_index, walk_state->scope_info->scope.node, 380 - &ddb_handle); 386 + acpi_ex_add_table(table_index, acpi_gbl_root_node, &ddb_handle); 381 387 if (ACPI_FAILURE(status)) { 382 388 383 389 /* On error, table_ptr was deallocated above */