]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/bootconfig: Fix resource leak in apply_xbc()
authorYunfeng Ye <yeyunfeng@huawei.com>
Thu, 7 May 2020 09:23:36 +0000 (17:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 15:48:13 +0000 (17:48 +0200)
commit9645943f26373a4ce473025a32f02ceeb5271c28
tree46a29d7d9452c5dc6e555909a4587aea16b72881
parentf5a51dc98b6db9b309ee330f0f2532ab81cd8612
tools/bootconfig: Fix resource leak in apply_xbc()

[ Upstream commit 8842604446d1f005abcbf8c63c12eabdb5695094 ]

Fix the @data and @fd allocations that are leaked in the error path of
apply_xbc().

Link: http://lkml.kernel.org/r/583a49c9-c27a-931d-e6c2-6f63a4b18bea@huawei.com
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/bootconfig/main.c