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
- Lines: 13
- Date:
Mon Mar 19 12:35:10 2001
- Orig file:
v2.4.2/linux/arch/mips64/kernel/linux32.c
- Orig date:
Sat Feb 3 19:51:22 2001
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(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
av = (char **) do_mmap_pgoff(0, 0, len, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS, 0);
- up(¤t->mm->mmap_sem);
+ up_write(¤t->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)