another fix after the macro stuff
authorDave Airlie <airlied@linux.ie>
Mon, 20 Sep 2004 10:45:53 +0000 (10:45 +0000)
committerDave Airlie <airlied@linux.ie>
Mon, 20 Sep 2004 10:45:53 +0000 (10:45 +0000)
linux-core/drm_scatter.c
linux/drm_scatter.h

index b1f3d84..436a017 100644 (file)
@@ -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,
index b1f3d84..436a017 100644 (file)
@@ -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,