# Re: \[PATCH\] arm64: kexec\_file: fix memory leakage in create\_dtb() when fdt\_open\_into() fails

- From: Will Deacon \<will@kernel.org\>
- Date: 2021-02-19 19:17:48 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/02/6274123
- Thread: https://ratatoskr.run/linux-arm-kernel/2021/02/6273006/t.md

```text
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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
