drm/vmwgfx: Tighten the security around buffer maps
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 21 Nov 2012 15:04:18 +0000 (16:04 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Nov 2012 10:09:08 +0000 (20:09 +1000)
commitd08a9b9cd82f668a5437c23e59063387ca3ecec5
treeba4f33c31d5cf530c244b2ec0fa8bf5865677563
parent219e81536c8776b30ccf3262c1ceaeaddf7a231a
drm/vmwgfx: Tighten the security around buffer maps

Make sure that other DRM clients can't map the contents of
non-shareable buffer objects.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c