patch-2.4.3 linux/arch/alpha/kernel/osf_sys.c

Next file: linux/arch/alpha/kernel/pci-noop.c
Previous file: linux/arch/alpha/kernel/core_wildfire.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/arch/alpha/kernel/osf_sys.c linux/arch/alpha/kernel/osf_sys.c
@@ -242,9 +242,9 @@
 			goto out;
 	}
 	flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
-	down(&current->mm->mmap_sem);
+	down_write(&current->mm->mmap_sem);
 	ret = do_mmap(file, addr, len, prot, flags, off);
-	up(&current->mm->mmap_sem);
+	up_write(&current->mm->mmap_sem);
 	if (file)
 		fput(file);
 out:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)