Re: [PATCH] arm64: kexec_file: fix memory leakage in create_dtb() when fdt_open_into() fails

From: Will Deacon
Date: Fri Feb 19 2021 - 14:17:49 EST


On Thu, 18 Feb 2021 20:59:00 +0800, qiuguorui1 wrote:
> in function create_dtb(), if fdt_open_into() fails, we need to vfree
> buf before return.

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: kexec_file: fix memory leakage in create_dtb() when fdt_open_into() fails
https://git.kernel.org/arm64/c/656d1d58d8e0

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev