summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/nsdump.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2013-10-29 05:29:04 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-30 15:24:20 +0400
commit48961ce62787502fe2afce2aeeb0ec306757a2bb (patch)
treee6396a71808e2bc9835e29aaca8a5e1f3efb724e /drivers/acpi/acpica/nsdump.c
parentd7da179423a506e8033a376547a375c0c9ec7671 (diff)
downloadlinux-48961ce62787502fe2afce2aeeb0ec306757a2bb.tar.xz
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/nsdump.c')
-rw-r--r--drivers/acpi/acpica/nsdump.c7
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,
}
node = acpi_ns_validate_handle(obj_handle);
+ if (!node) {
+
+ /* Ignore bad node during namespace walk */
+
+ return (AE_OK);
+ }
+
pathname = acpi_ns_get_external_pathname(node);
path_indent = 1;