aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-10-17 06:35:05 -0400
committerDave Airlie <airlied@redhat.com>2013-11-05 22:25:21 -0500
commit4ae87ff030fb42309c88ef1bc826618e2e4e9be4 (patch)
tree33bfab264427d734a35b25b48260722db5fbfd1b
parent10e10d34eec680490ccba7f9d53ffd0816f107f6 (diff)
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>
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index fc43c0601236..ecb3d867b426 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -1508,7 +1508,7 @@ int vmw_kms_cursor_bypass_ioctl(struct drm_device *dev, void *data,
1508 1508
1509 obj = drm_mode_object_find(dev, arg->crtc_id, DRM_MODE_OBJECT_CRTC); 1509 obj = drm_mode_object_find(dev, arg->crtc_id, DRM_MODE_OBJECT_CRTC);
1510 if (!obj) { 1510 if (!obj) {
1511 ret = -EINVAL; 1511 ret = -ENOENT;
1512 goto out; 1512 goto out;
1513 } 1513 }
1514 1514