Skip to content
Commit 48e6f22e authored by Michal Orzel's avatar Michal Orzel Committed by Catalin Marinas
Browse files

arm64: cputype: Avoid overflow using MIDR_IMPLEMENTOR_MASK



Value of macro MIDR_IMPLEMENTOR_MASK exceeds the range of integer
and can lead to overflow. Currently there is no issue as it is used
in expressions implicitly casting it to u32. To avoid possible
problems, fix the macro.

Signed-off-by: default avatarMichal Orzel <michal.orzel@arm.com>
Link: https://lore.kernel.org/r/20220426070603.56031-1-michal.orzel@arm.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent b6ba1a89
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment