diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2017-03-27 09:21:25 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-12 10:41:10 (GMT) |
commit | b116797b81e55c6ac9ddcbf92bcd662648273045 (patch) | |
tree | 418aa088397a8777f558bc9ce994da7e5467cdc6 /include/drm/ttm/ttm_page_alloc.h | |
parent | 604d2eac67cb3518aa6a236ec505fbe7c60947af (diff) | |
download | linux-b116797b81e55c6ac9ddcbf92bcd662648273045.tar.xz |
drm/ttm, drm/vmwgfx: Relax permission checking when opening surfaces
commit fe25deb7737ce6c0879ccf79c99fa1221d428bf2 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/drm/ttm/ttm_page_alloc.h')
0 files changed, 0 insertions, 0 deletions