aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/mmu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 078a7f1ac34c..2ad6f5481671 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2173,8 +2173,6 @@ int kvm_pv_mmu_op(struct kvm_vcpu *vcpu, unsigned long bytes,
2173 int r; 2173 int r;
2174 struct kvm_pv_mmu_op_buffer buffer; 2174 struct kvm_pv_mmu_op_buffer buffer;
2175 2175
2176 down_read(&current->mm->mmap_sem);
2177
2178 buffer.ptr = buffer.buf; 2176 buffer.ptr = buffer.buf;
2179 buffer.len = min_t(unsigned long, bytes, sizeof buffer.buf); 2177 buffer.len = min_t(unsigned long, bytes, sizeof buffer.buf);
2180 buffer.processed = 0; 2178 buffer.processed = 0;
@@ -2194,7 +2192,6 @@ int kvm_pv_mmu_op(struct kvm_vcpu *vcpu, unsigned long bytes,
2194 r = 1; 2192 r = 1;
2195out: 2193out:
2196 *ret = buffer.processed; 2194 *ret = buffer.processed;
2197 up_read(&current->mm->mmap_sem);
2198 return r; 2195 return r;
2199} 2196}
2200 2197