diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-04-03 08:01:00 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-04-03 08:01:00 +0000 |
commit | a15b9dec3cfed3ce36826faf8c7d76284b0527a8 (patch) | |
tree | db727c1851f5f8718d53f87323ea1d41019e6c7b /linux | |
parent | 4259e5e61716d321aa3c1ac6d7ad4bf0e3c39a38 (diff) |
include 2.4.2
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 d3ca48b4..b1111048 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -768,7 +768,7 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp, goto done; } -#if LINUX_VERSION_CODE < 0x020402 +#if LINUX_VERSION_CODE <= 0x020402 down( ¤t->mm->mmap_sem ); #else down_write( ¤t->mm->mmap_sem ); @@ -777,13 +777,13 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp, PROT_READ | PROT_WRITE, MAP_SHARED, (unsigned long)map->offset ); -#if LINUX_VERSION_CODE < 0x020402 +#if LINUX_VERSION_CODE <= 0x020402 up( ¤t->mm->mmap_sem ); #else up_write( ¤t->mm->mmap_sem ); #endif } else { -#if LINUX_VERSION_CODE < 0x020402 +#if LINUX_VERSION_CODE <= 0x020402 down( ¤t->mm->mmap_sem ); #else down_write( ¤t->mm->mmap_sem ); @@ -791,7 +791,7 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp, virtual = do_mmap( filp, 0, dma->byte_count, PROT_READ | PROT_WRITE, MAP_SHARED, 0 ); -#if LINUX_VERSION_CODE < 0x020402 +#if LINUX_VERSION_CODE <= 0x020402 up( ¤t->mm->mmap_sem ); #else up_write( ¤t->mm->mmap_sem ); |