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