diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-08-23 19:11:11 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-09-27 14:19:39 +0200 |
commit | 51c8a3c257941e77a614f9f46bc19baba758c5ee (patch) | |
tree | 34e1e4de817107603c37b0edaae59c6dd2164e11 /vmwgfx_ttm_glue.c | |
parent | 97615428a3b02b28f9345e51e36893541fc24c19 (diff) |
vmwgfx: Remove the possibility to map the fifo from user-space
This was previously used by user-space to check whether a fence
sequence had passed or not.
With fence objects that's not needed anymore.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'vmwgfx_ttm_glue.c')
-rw-r--r-- | vmwgfx_ttm_glue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vmwgfx_ttm_glue.c b/vmwgfx_ttm_glue.c index 8312328..d819a6e 100644 --- a/vmwgfx_ttm_glue.c +++ b/vmwgfx_ttm_glue.c @@ -34,9 +34,8 @@ int vmw_mmap(struct file *filp, struct vm_area_struct *vma) struct vmw_private *dev_priv; if (unlikely(vma->vm_pgoff < VMWGFX_FILE_PAGE_OFFSET)) { - if (vmw_fifo_mmap(filp, vma) == 0) - return 0; - return drm_mmap(filp, vma); + DRM_ERROR("Illegal attempt to mmap old fifo space.\n"); + return -EINVAL; } file_priv = (struct drm_file *)filp->private_data; |