mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 16:00:13 +01:00
Fix drm_scatter to properly report it's availability
This commit is contained in:
parent
eeb0ef1a70
commit
5dfd89ae0a
2 changed files with 2 additions and 2 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue