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)
commitb10c22e5f9902a329450c2027e9291b71e9f1602
tree482e93a299aa9652f9890eee9ad11fa423741805
parente7c31f6f25b84fed961dc0dce6248878527693ae
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: 0cd3e2747662 ("drm/vc4: Add missing render node support")
drivers/gpu/drm/vc4/vc4_drv.c