Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/mm: fixing calls of pte_unmap_unlock

pte_unmap works on page table entry pointers, derefencing should be avoided.
As on s390 pte_unmap is a NOP, this is more a cleanup if we want to supply
later such function.

Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Dominik Dingel and committed by
Martin Schwidefsky
66e9bbdb c9eeb7b8

+3 -3
+3 -3
arch/s390/mm/pgtable.c
··· 656 656 } 657 657 pgste_set_unlock(ptep, pgste); 658 658 out_pte: 659 - pte_unmap_unlock(*ptep, ptl); 659 + pte_unmap_unlock(ptep, ptl); 660 660 } 661 661 EXPORT_SYMBOL_GPL(__gmap_zap); 662 662 ··· 943 943 } 944 944 if (!(pte_val(*ptep) & _PAGE_INVALID) && 945 945 (pte_val(*ptep) & _PAGE_PROTECT)) { 946 - pte_unmap_unlock(*ptep, ptl); 946 + pte_unmap_unlock(ptep, ptl); 947 947 if (fixup_user_fault(current, mm, addr, FAULT_FLAG_WRITE)) { 948 948 up_read(&mm->mmap_sem); 949 949 return -EFAULT; ··· 974 974 pgste_val(new) |= PGSTE_UC_BIT; 975 975 976 976 pgste_set_unlock(ptep, new); 977 - pte_unmap_unlock(*ptep, ptl); 977 + pte_unmap_unlock(ptep, ptl); 978 978 up_read(&mm->mmap_sem); 979 979 return 0; 980 980 }