Browse Source

drm/vmwgfx: Return -ENOENT when a mode object can't be found

Let's be a bit more consistent with our error values.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Ville Syrjälä 11 years ago
parent
commit
4ae87ff030
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

+ 1 - 1
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

@@ -1508,7 +1508,7 @@ int vmw_kms_cursor_bypass_ioctl(struct drm_device *dev, void *data,
 
 	obj = drm_mode_object_find(dev, arg->crtc_id, DRM_MODE_OBJECT_CRTC);
 	if (!obj) {
-		ret = -EINVAL;
+		ret = -ENOENT;
 		goto out;
 	}