summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/bufs.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-04-05 04:55:58 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-04-05 04:55:58 +0000
commit74a9f2e1b4d3ab45a9f72cb5b556c9f521524ab3 (patch)
tree7c4cdb103ab1b388c9852a88bd6fb1e73eba0b5c /drivers/char/drm/bufs.c
parentee6374c8b0d333c08061c6a97bc77090d7461225 (diff)
Merge with Linux 2.4.3.
Note that mingetty does no longer work with serial console, you have to switch to another getty like getty_ps. This commit also includes a fix for a setitimer bug which did prevent getty_ps from working on older kernels.
Diffstat (limited to 'drivers/char/drm/bufs.c')
-rw-r--r--drivers/char/drm/bufs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/bufs.c b/drivers/char/drm/bufs.c
index 28e0eb5f1..7cb9dd52b 100644
--- a/drivers/char/drm/bufs.c
+++ b/drivers/char/drm/bufs.c
@@ -485,10 +485,10 @@ int drm_mapbufs(struct inode *inode, struct file *filp, unsigned int cmd,
return -EFAULT;
if (request.count >= dma->buf_count) {
- down(&current->mm->mmap_sem);
+ down_write(&current->mm->mmap_sem);
virtual = do_mmap(filp, 0, dma->byte_count,
PROT_READ|PROT_WRITE, MAP_SHARED, 0);
- up(&current->mm->mmap_sem);
+ up_write(&current->mm->mmap_sem);
if (virtual > -1024UL) {
/* Real error */
retcode = (signed long)virtual;