
From: Hanjun Guo <guohanjun@huawei.com> ascend inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I4U4KV CVE: NA ---------------------------------------- acpi_get_table() should be coupled with acpi_put_table(), or it will leat to memory leak, fix the memory leak to call acpi_put_table(). Signed-off-by: Hanjun Guo <guohanjun@huawei.com> Signed-off-by: Lijun Fang <fanglijun3@huawei.com> Reviewed-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> --- drivers/tty/serial/amba-pl011.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 379d83432e7e..4f2c9378931e 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -1516,6 +1516,8 @@ static void pl011_check_hisi_workaround(void) break; } } + + acpi_put_table(tbl); } #else -- 2.20.1