diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drm_bufs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index 63cfb0d4..f310eced 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -768,18 +768,18 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp, 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 */ |