patch-2.4.0-test2 linux/arch/m68k/kernel/sys_m68k.c
Next file: linux/arch/mips/config.in
Previous file: linux/arch/m68k/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue Jun 20 13:58:42 2000
- Orig file:
v2.4.0-test1/linux/arch/m68k/kernel/sys_m68k.c
- Orig date:
Fri Jan 28 15:09:07 2000
diff -u --recursive --new-file v2.4.0-test1/linux/arch/m68k/kernel/sys_m68k.c linux/arch/m68k/kernel/sys_m68k.c
@@ -143,7 +143,6 @@
if ((a.offset >> PAGE_SHIFT) != pgoff)
return -EINVAL;
- down(¤t->mm->mmap_sem);
lock_kernel();
if (!(a.flags & MAP_ANONYMOUS)) {
error = -EBADF;
@@ -153,12 +152,13 @@
}
a.flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
+ down(¤t->mm->mmap_sem);
error = do_mmap_pgoff(file, a.addr, a.len, a.prot, a.flags, pgoff);
+ up(¤t->mm->mmap_sem);
if (file)
fput(file);
out:
unlock_kernel();
- up(¤t->mm->mmap_sem);
return error;
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)