Revert "ACPICA: Interpreter: fix memory leak by using existing buffer"
mainline inclusion from mainline-v5.11 commit fe0af090 category: bugfix bugzilla: 187402, https://gitee.com/openeuler/kernel/issues/I61CL6 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fe0af09074bfeb46a35357e67635eefe33cdfc49 -------------------------------- This reverts commit 32cf1a12. 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: NShawn Guo <shawn.guo@linaro.org> Signed-off-by: NArd Biesheuvel <ardb@kernel.org> Tested-by: NShawn Guo <shawn.guo@linaro.org> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com> Conflicts: drivers/acpi/acpica/nsrepair2.c Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录