qiuguorui1 656d1d58d8 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>
2021-02-19 17:57:40 +00:00
..
2021-02-04 13:59:49 +00:00
2019-07-08 09:54:55 -07:00
2020-10-28 13:38:36 +00:00
2020-06-01 15:18:27 -07:00
2020-09-07 15:00:52 +01:00
2021-02-04 13:59:49 +00:00
2020-05-01 16:28:59 +01:00
2021-02-04 13:59:49 +00:00
2021-01-07 18:06:52 -05:00
2021-01-08 15:06:02 -08:00
2021-02-04 13:59:49 +00:00
2020-12-15 12:13:41 -08:00