[PATCH] arm64: acpi: Fix possible memory leak of ffh_ctxt

Catalin Marinas catalin.marinas at arm.com
Fri Feb 24 07:05:38 PST 2023


On Thu, 23 Feb 2023 13:57:42 +0000, Sudeep Holla wrote:
> Allocated 'ffh_ctxt' memory leak is possible if the SMCCC version
> and conduit checks fail and -EOPNOTSUPP is returned without freeing the
> allocated memory.
> 
> Fix the same by moving the allocation after the SMCCC version and
> conduit checks.
> 
> [...]

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

[1/1] arm64: acpi: Fix possible memory leak of ffh_ctxt
      https://git.kernel.org/arm64/c/1b561d3949f8

-- 
Catalin




More information about the linux-arm-kernel mailing list