diff --git a/bsd-core/drm_context.c b/bsd-core/drm_context.c index e3335ba9..41624929 100644 --- a/bsd-core/drm_context.c +++ b/bsd-core/drm_context.c @@ -189,7 +189,7 @@ int DRM(setsareactx)( DRM_OS_IOCTL ) bad: DRM_OS_UNLOCK; - return -EINVAL; + return DRM_OS_ERR(EINVAL); found: map = list->map; diff --git a/bsd/drm_context.h b/bsd/drm_context.h index e3335ba9..41624929 100644 --- a/bsd/drm_context.h +++ b/bsd/drm_context.h @@ -189,7 +189,7 @@ int DRM(setsareactx)( DRM_OS_IOCTL ) bad: DRM_OS_UNLOCK; - return -EINVAL; + return DRM_OS_ERR(EINVAL); found: map = list->map;