drm/fb: Don't expose mmio for fbdev emulation layer
authorJames Simmons <jsimmons@infradead.org>
Mon, 20 Dec 2010 19:10:39 +0000 (19:10 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 21 Dec 2010 02:49:44 +0000 (12:49 +1000)
commit57084d05379fe5c081d024006129b0565a11855f
treeff13b1d40642d7ff8d1b3215bad93554a5a42af5
parentb08ebe7e776e5be0271ed1e1bbb384e1f29dd117
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>
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/i915/intel_fb.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c