diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-10-03 07:52:21 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-03 07:52:21 +0200 |
commit | 6c09f6d830d03b78717403e7b42838a2ee2987ae (patch) | |
tree | 6436ab6a237578406e004c891e134afd266fb95d /virt/kvm/async_pf.c | |
parent | 389e067032fbb96e439abafae848dd447e4cafb4 (diff) | |
parent | 15c03dd4859ab16f9212238f29dd315654aa94f6 (diff) | |
download | op-kernel-dev-6c09f6d830d03b78717403e7b42838a2ee2987ae.zip op-kernel-dev-6c09f6d830d03b78717403e7b42838a2ee2987ae.tar.gz |
Merge tag 'v3.12-rc3' into timers/core
Merge Linux 3.12-rc3 - refresh the tree with the latest fixes before merging new bits.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'virt/kvm/async_pf.c')
-rw-r--r-- | virt/kvm/async_pf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c index ea475cd..8a39dda 100644 --- a/virt/kvm/async_pf.c +++ b/virt/kvm/async_pf.c @@ -101,8 +101,11 @@ void kvm_clear_async_pf_completion_queue(struct kvm_vcpu *vcpu) typeof(*work), queue); cancel_work_sync(&work->work); list_del(&work->queue); - if (!work->done) /* work was canceled */ + if (!work->done) { /* work was canceled */ + mmdrop(work->mm); + kvm_put_kvm(vcpu->kvm); /* == work->vcpu->kvm */ kmem_cache_free(async_pf_cache, work); + } } spin_lock(&vcpu->async_pf.lock); |