Revert "ACPICA: Interpreter: fix memory leak by using existing buffer"
authorArd Biesheuvel <ardb@kernel.org>
Sat, 6 Feb 2021 08:49:37 +0000 (09:49 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Feb 2021 12:46:53 +0000 (13:46 +0100)
commitfe0af09074bfeb46a35357e67635eefe33cdfc49
tree17e269f0d5b882d9df1abcbfaed36ba79808d967
parent92bf22614b21a2706f4993b278017e437f7785b3
Revert "ACPICA: Interpreter: fix memory leak by using existing buffer"

This reverts commit 32cf1a12cad43358e47dac8014379c2f33dfbed4.

The 'exisitng buffer' in this case is the firmware provided table, and
we should not modify that in place. This fixes a crash on arm64 with
initrd table overrides, in which case the DSDT is not mapped with
read/write permissions.

Reported-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/nsrepair2.c