summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-09-20 10:45:53 +0000
committerDave Airlie <airlied@linux.ie>2004-09-20 10:45:53 +0000
commitfa75a81c9acbae7282e2ea5596f04a6b359c95e9 (patch)
treea6b08608a28578cf4e20bc3d5a8cbb5f3f931730
parentc15b1d15ffbf41ed60cd807d13f031c8f270f887 (diff)
another fix after the macro stuff
-rw-r--r--linux-core/drm_scatter.c2
-rw-r--r--linux/drm_scatter.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_scatter.c b/linux-core/drm_scatter.c
index b1f3d846..436a0170 100644
--- a/linux-core/drm_scatter.c
+++ b/linux-core/drm_scatter.c
@@ -209,7 +209,7 @@ int DRM(sg_free)( struct inode *inode, struct file *filp,
drm_scatter_gather_t request;
drm_sg_mem_t *entry;
- if (drm_core_check_feature(dev, DRIVER_SG))
+ if (!drm_core_check_feature(dev, DRIVER_SG))
return -EINVAL;
if ( copy_from_user( &request,
diff --git a/linux/drm_scatter.h b/linux/drm_scatter.h
index b1f3d846..436a0170 100644
--- a/linux/drm_scatter.h
+++ b/linux/drm_scatter.h
@@ -209,7 +209,7 @@ int DRM(sg_free)( struct inode *inode, struct file *filp,
drm_scatter_gather_t request;
drm_sg_mem_t *entry;
- if (drm_core_check_feature(dev, DRIVER_SG))
+ if (!drm_core_check_feature(dev, DRIVER_SG))
return -EINVAL;
if ( copy_from_user( &request,