KVM: introduce KVM_PFN_ERR_HWPOISON
[linux-3.10.git] / virt / kvm / async_pf.c
index ebae24b62c90ec7af4270c2097b1182593c00b7d..79722782d9d7227e5179a92a14833e2f32ce5d1c 100644 (file)
@@ -203,8 +203,7 @@ int kvm_async_pf_wakeup_all(struct kvm_vcpu *vcpu)
        if (!work)
                return -ENOMEM;
 
-       work->page = bad_page;
-       get_page(bad_page);
+       work->page = get_bad_page();
        INIT_LIST_HEAD(&work->queue); /* for list_del to work */
 
        spin_lock(&vcpu->async_pf.lock);