KVM: s390/mm: fix up indentation of set_guest_storage_key
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 27 Aug 2014 10:20:02 +0000 (12:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Aug 2014 11:46:54 +0000 (13:46 +0200)
commit ab3f285f227f ("KVM: s390/mm: try a cow on read only pages for
key ops")' misaligned a code block. Let's fixup the indentation.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/s390/mm/pgtable.c

index 665714b08c0d264066a1bbd34c63148d5ac51f32..296b61a4af5974d59cd5692814d907614a7cf6d8 100644 (file)
@@ -943,13 +943,13 @@ retry:
        }
        if (!(pte_val(*ptep) & _PAGE_INVALID) &&
             (pte_val(*ptep) & _PAGE_PROTECT)) {
-                       pte_unmap_unlock(*ptep, ptl);
-                       if (fixup_user_fault(current, mm, addr, FAULT_FLAG_WRITE)) {
-                               up_read(&mm->mmap_sem);
-                               return -EFAULT;
-                       }
-                       goto retry;
+               pte_unmap_unlock(*ptep, ptl);
+               if (fixup_user_fault(current, mm, addr, FAULT_FLAG_WRITE)) {
+                       up_read(&mm->mmap_sem);
+                       return -EFAULT;
                }
+               goto retry;
+       }
 
        new = old = pgste_get_lock(ptep);
        pgste_val(new) &= ~(PGSTE_GR_BIT | PGSTE_GC_BIT |