From 8410c6a0f23b91380355be554b9d0c86fbe8a577 Mon Sep 17 00:00:00 2001 From: Hanjun Guo Date: Mon, 16 Nov 2020 14:57:59 +0800 Subject: [PATCH] tty/amba-pl011: Call acpi_put_table() to fix memory leak hulk inclusion category: bugfix bugzilla: NA 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 Reviewed-by: Xiongfeng Wang Signed-off-by: Yang Yingliang --- 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 f55e4d9596cb..8d2cffedbe37 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -1523,6 +1523,8 @@ static void pl011_check_hisi_workaround(void) break; } } + + acpi_put_table(tbl); } #else -- GitLab