aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kvm/book3s.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c
index eee97b5a7400..7656b6df0d8b 100644
--- a/arch/powerpc/kvm/book3s.c
+++ b/arch/powerpc/kvm/book3s.c
@@ -455,8 +455,10 @@ static void kvmppc_patch_dcbz(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte)
455 int i; 455 int i;
456 456
457 hpage = gfn_to_page(vcpu->kvm, pte->raddr >> PAGE_SHIFT); 457 hpage = gfn_to_page(vcpu->kvm, pte->raddr >> PAGE_SHIFT);
458 if (is_error_page(hpage)) 458 if (is_error_page(hpage)) {
459 kvm_release_page_clean(hpage);
459 return; 460 return;
461 }
460 462
461 hpage_offset = pte->raddr & ~PAGE_MASK; 463 hpage_offset = pte->raddr & ~PAGE_MASK;
462 hpage_offset &= ~0xFFFULL; 464 hpage_offset &= ~0xFFFULL;