]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 16:23:34 +0000 (17:23 +0100)
commit7f745f5c3ac9eea25584b911b6fe3236f4c6d1cf
tree48ec320463286921642ec71732dd75bd3e9d2e29
parent314f70006e6c7bc615680ac8d3b7fde79af2fd04
arm64: memory: Add missing brackets to untagged_addr() macro

commit d0022c0ef29b78bcbe8a5c5894bd2307143afce1 upstream.

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: 597399d0cb91 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/memory.h