]> 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)
commitbc55401bcb4ab533e16436ebee68d52b5de4028b
tree17e269f0d5b882d9df1abcbfaed36ba79808d967
parent85fd09d4b3b21becfbc020f4eaa7530f9eefd0d8
Revert "ACPICA: Interpreter: fix memory leak by using existing buffer"

This reverts commit 5ca8b7b7c4ce6fc9d73fd8ba54251facebc2d2fc.

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