]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Add missing HPTE unlock
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 5 Nov 2014 01:21:13 +0000 (12:21 +1100)
committerAlexander Graf <agraf@suse.de>
Mon, 15 Dec 2014 12:27:23 +0000 (13:27 +0100)
commit5133b294b8053c2d2556e8a8551c331efd6afa45
tree5ca8f476f465e6ab1f848a7e35176c5dd4345a7f
parentbc42d7d64465e13a8d0ab80bff5f9322bba04c05
KVM: PPC: Book3S HV: Add missing HPTE unlock

In kvm_test_clear_dirty(), if we find an invalid HPTE we move on to the
next HPTE without unlocking the invalid one.  In fact we should never
find an invalid and unlocked HPTE in the rmap chain, but for robustness
we should unlock it.  This adds the missing unlock.

Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_64_mmu_hv.c