aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kvm/book3s.c')
-rw-r--r--arch/powerpc/kvm/book3s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c
index bb8873dcb20f..492dcc198dd3 100644
--- a/arch/powerpc/kvm/book3s.c
+++ b/arch/powerpc/kvm/book3s.c
@@ -857,7 +857,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,
857 int is_dirty = 0; 857 int is_dirty = 0;
858 int r, n; 858 int r, n;
859 859
860 down_write(&kvm->slots_lock); 860 mutex_lock(&kvm->slots_lock);
861 861
862 r = kvm_get_dirty_log(kvm, log, &is_dirty); 862 r = kvm_get_dirty_log(kvm, log, &is_dirty);
863 if (r) 863 if (r)
@@ -879,7 +879,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,
879 879
880 r = 0; 880 r = 0;
881out: 881out:
882 up_write(&kvm->slots_lock); 882 mutex_unlock(&kvm->slots_lock);
883 return r; 883 return r;
884} 884}
885 885