patch-2.4.3 linux/drivers/sgi/char/graphics.c
Next file: linux/drivers/sgi/char/shmiq.c
Previous file: linux/drivers/scsi/sym53c8xx_defs.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Mon Mar 19 12:35:09 2001
- Orig file:
v2.4.2/linux/drivers/sgi/char/graphics.c
- Orig date:
Wed Feb 21 18:20:34 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/sgi/char/graphics.c linux/drivers/sgi/char/graphics.c
@@ -153,11 +153,11 @@
* sgi_graphics_mmap
*/
disable_gconsole ();
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
r = do_mmap (file, (unsigned long)vaddr,
cards[board].g_regs_size, PROT_READ|PROT_WRITE,
MAP_FIXED|MAP_PRIVATE, 0);
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
if (r)
return r;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)