summaryrefslogtreecommitdiffstats
path: root/arch/s390x/kernel/linux32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390x/kernel/linux32.c')
-rw-r--r--arch/s390x/kernel/linux32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390x/kernel/linux32.c b/arch/s390x/kernel/linux32.c
index 668ac46c4..c567d4b49 100644
--- a/arch/s390x/kernel/linux32.c
+++ b/arch/s390x/kernel/linux32.c
@@ -4184,9 +4184,9 @@ static inline long do_mmap2(
goto out;
}
- down(&current->mm->mmap_sem);
+ down_write(&current->mm->mmap_sem);
error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff);
- up(&current->mm->mmap_sem);
+ up_write(&current->mm->mmap_sem);
if (file)
fput(file);