linux/include/drm/ttm
Thomas Hellstrom ef9e7a115a drm/ttm, drm/vmwgfx: Relax permission checking when opening surfaces
commit fe25deb773 upstream.

Previously, when a surface was opened using a legacy (non prime) handle,
it was verified to have been created by a client in the same master realm.
Relax this so that opening is also allowed recursively if the client
already has the surface open.

This works around a regression in svga mesa where opening of a shared
surface is used recursively to obtain surface information.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-07-18 18:40:26 +01:00
..
ttm_bo_api.h drm/ttm: fix kerneldoc of ttm_bo_create 2014-05-26 12:54:09 +10:00
ttm_bo_driver.h drm/ttm: fix handling of TTM_PL_FLAG_TOPDOWN v2 2014-10-05 13:40:50 -07:00
ttm_execbuf_util.h drm/ttm: Allow execbuf util reserves without ticket 2013-11-18 00:38:52 -08:00
ttm_lock.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00
ttm_memory.h drm/ttm: remove ttm_mem_global->queue 2012-11-20 16:06:22 +10:00
ttm_module.h drm: move ttm global code to core drm 2010-08-04 09:46:06 +10:00
ttm_object.h drm/ttm, drm/vmwgfx: Relax permission checking when opening surfaces 2017-07-18 18:40:26 +01:00
ttm_page_alloc.h drm/ttm: declare 'struct device' in ttm_page_alloc.h 2014-02-18 14:01:48 +01:00
ttm_placement.h drm: Add support for two-ended allocation, v3 2014-04-04 09:28:14 +10:00