diff options
author | James Simmons <jsimmons@infradead.org> | 2010-12-20 14:10:39 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-12-20 21:49:44 -0500 |
commit | 57084d05379fe5c081d024006129b0565a11855f (patch) | |
tree | ff13b1d40642d7ff8d1b3215bad93554a5a42af5 /drivers/gpu/drm/vmwgfx | |
parent | b08ebe7e776e5be0271ed1e1bbb384e1f29dd117 (diff) |
drm/fb: Don't expose mmio for fbdev emulation layer
For the fbdev api if the struct fb_var_screeninfo accel_flags field is set
to FB_ACCELF_TEXT then userland applications can not mmap the mmio region.
Since it is a bad idea for DRM drivers to expose the mmio region via the
fbdev layer we always set the accel_flags to prevent this. Please apply.
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index 41d9a5b73c03..dd596f2bd6e8 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | |||
@@ -480,9 +480,6 @@ int vmw_fb_init(struct vmw_private *vmw_priv) | |||
480 | info->fix.smem_start = 0; | 480 | info->fix.smem_start = 0; |
481 | info->fix.smem_len = fb_size; | 481 | info->fix.smem_len = fb_size; |
482 | 482 | ||
483 | info->fix.mmio_start = 0; | ||
484 | info->fix.mmio_len = 0; | ||
485 | |||
486 | info->pseudo_palette = par->pseudo_palette; | 483 | info->pseudo_palette = par->pseudo_palette; |
487 | info->screen_base = par->vmalloc; | 484 | info->screen_base = par->vmalloc; |
488 | info->screen_size = fb_size; | 485 | info->screen_size = fb_size; |