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

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(&current->mm->mmap_sem);
+	down_write(&current->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(&current->mm->mmap_sem);
+	up_write(&current->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)