]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: memory: Add missing brackets to untagged_addr() macro
authorWill Deacon <will@kernel.org>
Wed, 19 Feb 2020 10:19:13 +0000 (10:19 +0000)
committerWill Deacon <will@kernel.org>
Wed, 19 Feb 2020 13:41:33 +0000 (13:41 +0000)
commit0aecda5b76d5d93348ad28ce99ef95b87109581e
tree1f6531635f05cd87565ae8454ad6b28290a4a0e6
parent97c34d07b1c25dbd122786448cd8e1ba363a8c52
arm64: memory: Add missing brackets to untagged_addr() macro

Add brackets around the evaluation of the 'addr' parameter to the
untagged_addr() macro so that the cast to 'u64' applies to the result
of the expression.

Cc: <stable@vger.kernel.org>
Fixes: 501ae3bf6fbb ("arm64: tags: Preserve tags for addresses translated via TTBR1")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/memory.h