ACPICA: Namespace: add check to avoid null pointer dereference
authorErik Schmauss <erik.schmauss@intel.com>
Mon, 8 Apr 2019 20:42:29 +0000 (13:42 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 9 Apr 2019 09:25:27 +0000 (11:25 +0200)
commitdf9271d69f4016c1169699de9a826745688103bd
treeee3f555533a0f80b3b32ffcf424bdc8049c91dac
parent985d5124bfb0773edb8353237e5e8ddb614c3442
ACPICA: Namespace: add check to avoid null pointer dereference

ACPICA commit 7586a625f9c34c3169efd88470192bf63119e31a

Some ACPICA userspace tools call acpi_ut_subsystem_shutdown() during
cleanup and dereference a null pointer when cleaning up the
namespace.

Link: https://github.com/acpica/acpica/commit/7586a625
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/nsalloc.c