]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8e46db82537e8d6b2d69a4beec0ea46bb6de2ef
tree17e269f0d5b882d9df1abcbfaed36ba79808d967
parentb282607df7668b74dacffe3bae2cf79eff9921b8
Revert "ACPICA: Interpreter: fix memory leak by using existing buffer"

This reverts commit c8714935bba64a4c10a4d2986575698d17a35684.

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