diff options
| -rw-r--r-- | virt/kvm/async_pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c index 74268b4c2ee1..ebae24b62c90 100644 --- a/virt/kvm/async_pf.c +++ b/virt/kvm/async_pf.c | |||
| @@ -112,7 +112,7 @@ void kvm_clear_async_pf_completion_queue(struct kvm_vcpu *vcpu) | |||
| 112 | typeof(*work), link); | 112 | typeof(*work), link); |
| 113 | list_del(&work->link); | 113 | list_del(&work->link); |
| 114 | if (work->page) | 114 | if (work->page) |
| 115 | put_page(work->page); | 115 | kvm_release_page_clean(work->page); |
| 116 | kmem_cache_free(async_pf_cache, work); | 116 | kmem_cache_free(async_pf_cache, work); |
| 117 | } | 117 | } |
| 118 | spin_unlock(&vcpu->async_pf.lock); | 118 | spin_unlock(&vcpu->async_pf.lock); |
| @@ -139,7 +139,7 @@ void kvm_check_async_pf_completion(struct kvm_vcpu *vcpu) | |||
| 139 | list_del(&work->queue); | 139 | list_del(&work->queue); |
| 140 | vcpu->async_pf.queued--; | 140 | vcpu->async_pf.queued--; |
| 141 | if (work->page) | 141 | if (work->page) |
| 142 | put_page(work->page); | 142 | kvm_release_page_clean(work->page); |
| 143 | kmem_cache_free(async_pf_cache, work); | 143 | kmem_cache_free(async_pf_cache, work); |
| 144 | } | 144 | } |
| 145 | } | 145 | } |
