patch-2.4.3 linux/drivers/char/drm/r128_bufs.c
Next file: linux/drivers/char/drm/r128_drv.h
Previous file: linux/drivers/char/drm/mga_bufs.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Mon Mar 19 12:35:08 2001
- Orig file:
v2.4.2/linux/drivers/char/drm/r128_bufs.c
- Orig date:
Thu Jan 4 13:03:20 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/char/drm/r128_bufs.c linux/drivers/char/drm/r128_bufs.c
@@ -249,17 +249,17 @@
goto done;
}
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
virtual = do_mmap(filp, 0, map->size,
PROT_READ|PROT_WRITE,
MAP_SHARED,
(unsigned long)map->offset);
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
} else {
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
virtual = do_mmap(filp, 0, dma->byte_count,
PROT_READ|PROT_WRITE, MAP_SHARED, 0);
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
}
if (virtual > -1024UL) {
/* Real error */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)