projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ae87ff
)
drm/vmwgfx: Return -ENOENT when a framebuffer can't be found
author
Ville Syrjälä
<ville.syrjala@linux.intel.com>
Thu, 17 Oct 2013 10:35:06 +0000
(13:35 +0300)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 6 Nov 2013 03:25:22 +0000
(13:25 +1000)
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>
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
index
c509d40
..
a51f48e
100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
@@
-168,7
+168,7
@@
int vmw_present_ioctl(struct drm_device *dev, void *data,
fb = drm_framebuffer_lookup(dev, arg->fb_id);
if (!fb) {
DRM_ERROR("Invalid framebuffer id.\n");
- ret = -E
INVAL
;
+ ret = -E
NOENT
;
goto out_no_fb;
}
vfb = vmw_framebuffer_to_vfb(fb);
@@
-252,7
+252,7
@@
int vmw_present_readback_ioctl(struct drm_device *dev, void *data,
fb = drm_framebuffer_lookup(dev, arg->fb_id);
if (!fb) {
DRM_ERROR("Invalid framebuffer id.\n");
- ret = -E
INVAL
;
+ ret = -E
NOENT
;
goto out_no_fb;
}