summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2001-03-30 13:33:52 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2001-03-30 13:33:52 +0000
commite95ee06e0d2c9859b574c0623c78a5de261a70df (patch)
tree70b5d330dc82b6865010e3201cc2533bbcd2fb3a /linux-core
parent5a370697aabda237992dd1ed24bfc554b41eac67 (diff)
merge in 2.4.3 kernel change.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bufs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index 63cfb0d4..f310eced 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -768,18 +768,18 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp,
goto done;
}
- down( &current->mm->mmap_sem );
+ down_write( &current->mm->mmap_sem );
virtual = do_mmap( filp, 0, map->size,
PROT_READ | PROT_WRITE,
MAP_SHARED,
(unsigned long)map->offset );
- up( &current->mm->mmap_sem );
+ up_write( &current->mm->mmap_sem );
} else {
- 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 */