patch-2.4.3 linux/arch/mips64/kernel/linux32.c

Next file: linux/arch/mips64/kernel/mips64_ksyms.c
Previous file: linux/arch/mips64/defconfig
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/arch/mips64/kernel/linux32.c linux/arch/mips64/kernel/linux32.c
@@ -443,10 +443,10 @@
 	 *  `execve' frees all current memory we only have to do an
 	 *  `munmap' if the `execve' failes.
 	 */
-	down(&current->mm->mmap_sem);
+	down_write(&current->mm->mmap_sem);
 	av = (char **) do_mmap_pgoff(0, 0, len, PROT_READ | PROT_WRITE,
 				     MAP_PRIVATE | MAP_ANONYMOUS, 0);
-	up(&current->mm->mmap_sem);
+	up_write(&current->mm->mmap_sem);
 
 	if (IS_ERR(av))
 		return (long) av;

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