patch-2.4.3 linux/arch/cris/kernel/sys_cris.c

Next file: linux/arch/cris/mm/fault.c
Previous file: linux/arch/cris/kernel/entry.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/arch/cris/kernel/sys_cris.c linux/arch/cris/kernel/sys_cris.c
@@ -62,9 +62,9 @@
         }
         
         flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
-        down(&current->mm->mmap_sem);
+        down_write(&current->mm->mmap_sem);
         ret = do_mmap(file, addr, len, prot, flags, offset);
-        up(&current->mm->mmap_sem);
+        up_write(&current->mm->mmap_sem);
         if (file)
                 fput(file);
  out:
@@ -87,9 +87,9 @@
                         goto out;
         }
 
-        down(&current->mm->mmap_sem);
+        down_write(&current->mm->mmap_sem);
         error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff);
-        up(&current->mm->mmap_sem);
+        up_write(&current->mm->mmap_sem);
 
         if (file)
                 fput(file);

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