commit | 656d1d58d8e0958d372db86c24f0b2ea36f50888 | [log] [tgz] |
---|---|---|
author | qiuguorui1 <qiuguorui1@huawei.com> | Thu Feb 18 20:59:00 2021 +0800 |
committer | Will Deacon <will@kernel.org> | Fri Feb 19 17:57:40 2021 +0000 |
tree | bb5eb10bb29bf51c58215bab4557073248cb5606 | |
parent | a2c42bbabbe260b7626d8459093631a6e16ee0ee [diff] |
arm64: kexec_file: fix memory leakage in create_dtb() when fdt_open_into() fails in function create_dtb(), if fdt_open_into() fails, we need to vfree buf before return. Fixes: 52b2a8af7436 ("arm64: kexec_file: load initrd and device-tree") Cc: stable@vger.kernel.org # v5.0 Signed-off-by: qiuguorui1 <qiuguorui1@huawei.com> Link: https://lore.kernel.org/r/20210218125900.6810-1-qiuguorui1@huawei.com Signed-off-by: Will Deacon <will@kernel.org>