ACPI: PRM: Handle memory allocation and memory remap failure
authorAubrey Li <aubrey.li@intel.com>
Wed, 20 Oct 2021 03:23:17 +0000 (11:23 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Oct 2021 13:29:07 +0000 (15:29 +0200)
commitc52ca713279da78881d36b49acd36288a46bbec8
tree0d070b394ab9b9cd6168a4da13ad7758b3538440
parentcaa2bd07f5c5f09acf62072906daeaa667e2b645
ACPI: PRM: Handle memory allocation and memory remap failure

Handle memory allocation and memory remap failure in acpi_parse_prmt()
when system runs out of memory to avoid the potential NULL pointer
dereference errors.

Signed-off-by: Aubrey Li <aubrey.li@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/prmt.c