Commit 39adeffc authored by Hanjun Guo's avatar Hanjun Guo Committed by Zheng Zengkai
Browse files

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: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarLijun Fang <fanglijun3@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 27d59d24
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1516,6 +1516,8 @@ static void pl011_check_hisi_workaround(void)
			break;
		}
	}

	acpi_put_table(tbl);
}

#else