From: Bob Moore Date: Tue, 29 Oct 2013 01:29:04 +0000 (+0800) Subject: ACPICA: Add a check for a null node during namespace walk. X-Git-Tag: v3.13-rc2~19^2~2^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48961ce62787502fe2afce2aeeb0ec306757a2bb;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index 8063385..c634854 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;