From: Marc Zyngier Date: Wed, 17 Apr 2013 19:09:09 +0000 (-0700) Subject: ARM: KVM: fix unbalanced get_cpu() in access_dcsw X-Git-Tag: v3.9-rc8~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15bbc1b28ff65767922f78c266821cc138b90a47;p=pandora-kernel.git 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: Marc Zyngier Signed-off-by: Christoffer Dall Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed