KVM: PPC: correctly check gfn_to_pfn() return value
authorGleb Natapov <gleb@redhat.com>
Thu, 29 Jul 2010 13:04:18 +0000 (15:04 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:58 +0000 (10:50 +0200)
commit49451389ecc2b4336c305678c210b25fadd18994
tree7ceb7952fa2bbcdf565800a4298028bec664d986
parent2e0908afaf03675d22e40ce45a66b8d2070214ac
KVM: PPC: correctly check gfn_to_pfn() return value

On failure gfn_to_pfn returns bad_page so use correct function to check
for that.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s_32_mmu_host.c
arch/powerpc/kvm/book3s_64_mmu_host.c