arm64: futex.h: Add missing PAN toggling
authorJames Morse <james.morse@arm.com>
Tue, 2 Feb 2016 15:53:59 +0000 (15:53 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 2 Feb 2016 15:59:21 +0000 (15:59 +0000)
commit811d61e384e24759372bb3f01772f3744b0a8327
tree2a5e51604ad168f529606874ce7f2faf3649c971
parent95f5c80050ad723163aa80dc8bffd48ef4afc6d5
arm64: futex.h: Add missing PAN toggling

futex.h's futex_atomic_cmpxchg_inatomic() does not use the
__futex_atomic_op() macro and needs its own PAN toggling. This was missed
when the feature was implemented.

Fixes: 338d4f49d6f ("arm64: kernel: Add support for Privileged Access Never")
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/futex.h