提交 39adeffc 编写于 作者: H Hanjun Guo 提交者: Zheng Zengkai

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: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NLijun Fang <fanglijun3@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 27d59d24
......@@ -1516,6 +1516,8 @@ static void pl011_check_hisi_workaround(void)
break;
}
}
acpi_put_table(tbl);
}
#else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册