aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/x86.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 4044ce0bf7c1..8beb9ce79364 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -6366,10 +6366,8 @@ void kvm_arch_commit_memory_region(struct kvm *kvm,
6366 if (!user_alloc && !old.user_alloc && old.rmap && !npages) { 6366 if (!user_alloc && !old.user_alloc && old.rmap && !npages) {
6367 int ret; 6367 int ret;
6368 6368
6369 down_write(&current->mm->mmap_sem); 6369 ret = vm_munmap(current->mm, old.userspace_addr,
6370 ret = do_munmap(current->mm, old.userspace_addr,
6371 old.npages * PAGE_SIZE); 6370 old.npages * PAGE_SIZE);
6372 up_write(&current->mm->mmap_sem);
6373 if (ret < 0) 6371 if (ret < 0)
6374 printk(KERN_WARNING 6372 printk(KERN_WARNING
6375 "kvm_vm_ioctl_set_memory_region: " 6373 "kvm_vm_ioctl_set_memory_region: "