]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPICA: Avoid walking the ACPI Namespace if it is not there
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Mar 2022 19:28:26 +0000 (20:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 12:14:54 +0000 (14:14 +0200)
commit93c3e89c9f28f71ccbb51d91821dbe0aa9bfcb16
tree23572da5a1a25fdebcf7c8c6cd19c0a916d6c7ca
parent74e610b5ee0d95e751280567100509eb11517efa
ACPICA: Avoid walking the ACPI Namespace if it is not there

[ Upstream commit 0c9992315e738e7d6e927ef36839a466b080dba6 ]

ACPICA commit b1c3656ef4950098e530be68d4b589584f06cddc

Prevent acpi_ns_walk_namespace() from crashing when called with
start_node equal to ACPI_ROOT_OBJECT if the Namespace has not been
instantiated yet and acpi_gbl_root_node is NULL.

For instance, this can happen if the kernel is run with "acpi=off"
in the command line.

Link: https://github.com/acpica/acpica/commit/b1c3656ef4950098e530be68d4b589584f06cddc
Link: https://lore.kernel.org/linux-acpi/CAJZ5v0hJWW_vZ3wwajE7xT38aWjY7cZyvqMJpXHzUL98-SiCVQ@mail.gmail.com/
Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/acpica/nswalk.c