drm: drop DRM_AUTH from PRIME_TO/FROM_HANDLE ioctls
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 1 Nov 2019 13:03:13 +0000 (13:03 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 2 Dec 2019 16:52:15 +0000 (16:52 +0000)
commit30a958526d2cc6df38347336a602479d048d92e7
treecb2406ce6cda7fbbc35c8802cfa318d4b55c3dc0
parentc1572b75606623551dfbf9301cb769e60eaeda3b
drm: drop DRM_AUTH from PRIME_TO/FROM_HANDLE ioctls

As mentioned by Christian, for drivers which support only primary nodes
this changes the returned error from -EACCES into -EOPNOTSUPP/-ENOSYS.

For others, this check in particular will be a noop. So let's remove it
as suggested by Christian.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Sean Paul <sean@poorly.run>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191101130313.8862-5-emil.l.velikov@gmail.com
drivers/gpu/drm/drm_ioctl.c