diff options
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/i830_dma.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c index 6d0e3223..e83ac5e9 100644 --- a/linux-core/i830_dma.c +++ b/linux-core/i830_dma.c @@ -247,14 +247,11 @@ static int i830_unmap_buffer(drm_buf_t *buf) #else down_write( ¤t->mm->mmap_sem ); #endif -#if LINUX_VERSION_CODE < 0x020399 - retcode = do_munmap((unsigned long)buf_priv->virtual, - (size_t) buf->total); -#else + retcode = do_munmap(current->mm, (unsigned long)buf_priv->virtual, (size_t) buf->total); -#endif + #if LINUX_VERSION_CODE <= 0x020402 up( ¤t->mm->mmap_sem ); #else |