From: Ville Syrjälä Date: Thu, 17 Oct 2013 10:35:05 +0000 (+0300) Subject: drm/vmwgfx: Return -ENOENT when a mode object can't be found X-Git-Tag: v3.13-rc1~76^2~45 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4ae87ff030fb42309c88ef1bc826618e2e4e9be4;p=karo-tx-linux.git 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ä Signed-off-by: Dave Airlie --- 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, obj = drm_mode_object_find(dev, arg->crtc_id, DRM_MODE_OBJECT_CRTC); if (!obj) { - ret = -EINVAL; + ret = -ENOENT; goto out; }