From 39adeffc9b69924c748a944f3a8d397e0477c26d Mon Sep 17 00:00:00 2001 From: Hanjun Guo Date: Wed, 23 Feb 2022 18:45:25 +0800 Subject: [PATCH] tty/amba-pl011: Call acpi_put_table() to fix memory leak 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 Signed-off-by: Lijun Fang Reviewed-by: Weilong Chen Signed-off-by: Zheng Zengkai --- 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 -- GitLab