Commit 937f3acc authored by Noralf Trønnes's avatar Noralf Trønnes
parent 60ccc38f
...@@ -509,7 +509,7 @@ int drm_ioctl_permit(u32 flags, struct drm_file *file_priv) ...@@ -509,7 +509,7 @@ int drm_ioctl_permit(u32 flags, struct drm_file *file_priv)
return -EACCES; return -EACCES;
/* MASTER is only for master or control clients */ /* MASTER is only for master or control clients */
if (unlikely((flags & DRM_MASTER) && if (unlikely((flags & DRM_MASTER) &&
!drm_is_current_master(file_priv) && !drm_is_current_master(file_priv) &&
!drm_is_control_client(file_priv))) !drm_is_control_client(file_priv)))
return -EACCES; return -EACCES;
...@@ -704,7 +704,7 @@ static const struct drm_ioctl_desc drm_ioctls[] = { ...@@ -704,7 +704,7 @@ static const struct drm_ioctl_desc drm_ioctls[] = {
* *
* ##define DRM_IOCTL_MY_DRIVER_OPERATION \ * ##define DRM_IOCTL_MY_DRIVER_OPERATION \
* DRM_IOW(DRM_COMMAND_BASE, struct my_driver_operation) * DRM_IOW(DRM_COMMAND_BASE, struct my_driver_operation)
* *
* DRM driver private IOCTL must be in the range from DRM_COMMAND_BASE to * DRM driver private IOCTL must be in the range from DRM_COMMAND_BASE to
* DRM_COMMAND_END. Finally you need an array of &struct drm_ioctl_desc to wire * DRM_COMMAND_END. Finally you need an array of &struct drm_ioctl_desc to wire
* up the handlers and set the access rights:: * up the handlers and set the access rights::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment