[PATCH] arm64: cacheinfo: Fix incorrect assignment of signed error value to unsigned fw_level

Will Deacon will at kernel.org
Tue Aug 23 04:34:22 PDT 2022


On Mon, 8 Aug 2022 09:46:40 +0100, Sudeep Holla wrote:
> Though acpi_find_last_cache_level() always returned signed value and the
> document states it will return any errors caused by lack of a PPTT table,
> it never returned negative values before.
> 
> Commit 0c80f9e165f8 ("ACPI: PPTT: Leave the table mapped for the runtime usage")
> however changed it by returning -ENOENT if no PPTT was found. The value
> returned from acpi_find_last_cache_level() is then assigned to unsigned
> fw_level.
> 
> [...]

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

[1/1] arm64: cacheinfo: Fix incorrect assignment of signed error value to unsigned fw_level
      https://git.kernel.org/arm64/c/e75d18cecbb3

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list