Skip to content
Commit 15bbc1b2 authored by Marc Zyngier's avatar Marc Zyngier Committed by Linus Torvalds
Browse files

ARM: KVM: fix unbalanced get_cpu() in access_dcsw



In the very unlikely event where a guest would be foolish enough to
*read* from a write-only cache maintainance register, we end up
with preemption disabled, due to a misplaced get_cpu().

Just move the "is_write" test outside of the critical section.

Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarChristoffer Dall <cdall@cs.columbia.edu>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fca83168
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment