patch-2.4.3 linux/arch/s390x/kernel/binfmt_elf32.c
Next file: linux/arch/s390x/kernel/entry.S
Previous file: linux/arch/s390/tools/dasdfmt/dasdfmt.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Mon Mar 19 12:35:11 2001
- Orig file:
v2.4.2/linux/arch/s390x/kernel/binfmt_elf32.c
- Orig date:
Wed Feb 21 18:20:14 2001
diff -u --recursive --new-file v2.4.2/linux/arch/s390x/kernel/binfmt_elf32.c linux/arch/s390x/kernel/binfmt_elf32.c
@@ -193,11 +193,11 @@
if(!addr)
addr = 0x40000000;
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
map_addr = do_mmap(filep, ELF_PAGESTART(addr),
eppnt->p_filesz + ELF_PAGEOFFSET(eppnt->p_vaddr), prot, type,
eppnt->p_offset - ELF_PAGEOFFSET(eppnt->p_vaddr));
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
return(map_addr);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)