summaryrefslogtreecommitdiff
path: root/linux/drm_scatter.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drm_scatter.h')
-rw-r--r--linux/drm_scatter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drm_scatter.h b/linux/drm_scatter.h
index 4aaf89d4..89ac166a 100644
--- a/linux/drm_scatter.h
+++ b/linux/drm_scatter.h
@@ -74,6 +74,9 @@ int DRM(sg_alloc)( struct inode *inode, struct file *filp,
DRM_DEBUG( "%s\n", __FUNCTION__ );
+ if ( dev->driver_features & DRIVER_SG )
+ return -EINVAL;
+
if ( dev->sg )
return -EINVAL;
@@ -207,6 +210,9 @@ int DRM(sg_free)( struct inode *inode, struct file *filp,
drm_scatter_gather_t request;
drm_sg_mem_t *entry;
+ if ( dev->driver_features & DRIVER_SG )
+ return -EINVAL;
+
if ( copy_from_user( &request,
(drm_scatter_gather_t __user *)arg,
sizeof(request) ) )