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

Will Deacon will at kernel.org
Fri Feb 19 14:16:54 EST 2021


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



More information about the linux-arm-kernel mailing list