Fix drm_scatter to properly report it's availability

This commit is contained in:
Jon Smirl 2004-09-16 14:32:17 +00:00
parent eeb0ef1a70
commit 5dfd89ae0a
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ int DRM(sg_alloc)( struct inode *inode, struct file *filp,
DRM_DEBUG( "%s\n", __FUNCTION__ );
if (drm_core_check_feature(dev, DRIVER_SG))
if (!drm_core_check_feature(dev, DRIVER_SG))
return -EINVAL;
if ( dev->sg )

View file

@ -73,7 +73,7 @@ int DRM(sg_alloc)( struct inode *inode, struct file *filp,
DRM_DEBUG( "%s\n", __FUNCTION__ );
if (drm_core_check_feature(dev, DRIVER_SG))
if (!drm_core_check_feature(dev, DRIVER_SG))
return -EINVAL;
if ( dev->sg )