patch-2.4.3 linux/arch/parisc/kernel/sys_parisc.c

Next file: linux/arch/parisc/mm/fault.c
Previous file: linux/arch/mips64/sgi-ip22/ip22-sc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/arch/parisc/kernel/sys_parisc.c linux/arch/parisc/kernel/sys_parisc.c
@@ -51,7 +51,7 @@
 	struct file * file = NULL;
 	int error;
 
-	down(&current->mm->mmap_sem);
+	down_write(&current->mm->mmap_sem);
 	lock_kernel();
 	if (!(flags & MAP_ANONYMOUS)) {
 		error = -EBADF;
@@ -65,7 +65,7 @@
 		fput(file);
 out:
 	unlock_kernel();
-	up(&current->mm->mmap_sem);
+	up_write(&current->mm->mmap_sem);
 	return error;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)