patch-2.3.9 linux/arch/alpha/kernel/osf_sys.c
Next file: linux/arch/alpha/kernel/setup.c
Previous file: linux/arch/alpha/config.in
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Thu Jun 24 23:56:23 1999
- Orig file:
v2.3.8/linux/arch/alpha/kernel/osf_sys.c
- Orig date:
Mon May 10 09:55:21 1999
diff -u --recursive --new-file v2.3.8/linux/arch/alpha/kernel/osf_sys.c linux/arch/alpha/kernel/osf_sys.c
@@ -255,6 +255,7 @@
struct file *file = NULL;
unsigned long ret = -EBADF;
+ down(¤t->mm->mmap_sem);
lock_kernel();
#if 0
if (flags & (_MAP_HASSEMAPHORE | _MAP_INHERIT | _MAP_UNALIGNED))
@@ -272,6 +273,7 @@
fput(file);
out:
unlock_kernel();
+ up(¤t->mm->mmap_sem);
return ret;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)