diff options
author | Bob Moore <robert.moore@intel.com> | 2013-10-28 21:29:04 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-30 07:24:20 -0400 |
commit | 48961ce62787502fe2afce2aeeb0ec306757a2bb (patch) | |
tree | e6396a71808e2bc9835e29aaca8a5e1f3efb724e /drivers/acpi/acpica | |
parent | d7da179423a506e8033a376547a375c0c9ec7671 (diff) |
ACPICA: Add a check for a null node during namespace walk.
Mostly for consistency. ACPICA BZ 1042.
Actually, currently no one is experiencing problem without this check
as the obj_handle is guaranteed to be valid.
References: https://bugs.acpica.org/show_bug.cgi?id=1042
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r-- | drivers/acpi/acpica/nsdump.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index 80633851cb2f..c6348545277e 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
@@ -715,6 +715,13 @@ acpi_ns_dump_one_object_path(acpi_handle obj_handle, | |||
715 | } | 715 | } |
716 | 716 | ||
717 | node = acpi_ns_validate_handle(obj_handle); | 717 | node = acpi_ns_validate_handle(obj_handle); |
718 | if (!node) { | ||
719 | |||
720 | /* Ignore bad node during namespace walk */ | ||
721 | |||
722 | return (AE_OK); | ||
723 | } | ||
724 | |||
718 | pathname = acpi_ns_get_external_pathname(node); | 725 | pathname = acpi_ns_get_external_pathname(node); |
719 | 726 | ||
720 | path_indent = 1; | 727 | path_indent = 1; |