]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Fix ioctl permissions for render nodes.
authorHerve Jourdain <herve.jourdain@neuf.fr>
Tue, 31 May 2016 18:24:46 +0000 (02:24 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 6 Jun 2016 20:00:30 +0000 (13:00 -0700)
commita9952338b0e02252b4842712d6d7870cbef61587
tree482e93a299aa9652f9890eee9ad11fa423741805
parentf8e86d86f7b84a2949542b9e65d8d922b54eb3dd
drm/vc4: Fix ioctl permissions for render nodes.

Contrary to other flags to DRM_IOCTL_DEF_DRV(), which restrict usage,
the flag for render node is an enabler (the IOCTL can't be used from
render node if it's not present).  So DRM_RENDER_ALLOW needs to be
added to all the flags that were previously 0.

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
Reviewed-by: Eric Anholt <eric@anholt.net>
Fixes: 99d4babbac98 ("drm/vc4: Add missing render node support")
drivers/gpu/drm/vc4/vc4_drv.c