projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b15ec36
)
drm: fixup i915 error codes
author
Dave Airlie
<airlied@linux.ie>
Sun, 27 Aug 2006 01:09:46 +0000
(11:09 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 21 Sep 2006 19:32:33 +0000
(
05:32
+1000)
Frederik Deweerdt <deweerdt@free.fr> pointed this out, I fixed a missing
DRM error wrapper also.
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/i915_dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/i915_dma.c
b/drivers/char/drm/i915_dma.c
index d932f80f264cc7e81f6025da2d28fc0f7a31d873..a7924e28a847a6c57f34e7226b7db0f63abbe462 100644
(file)
--- a/
drivers/char/drm/i915_dma.c
+++ b/
drivers/char/drm/i915_dma.c
@@
-260,7
+260,7
@@
static int i915_dma_init(DRM_IOCTL_ARGS)
retcode = i915_dma_resume(dev);
break;
default:
- retcode =
-EINVAL
;
+ retcode =
DRM_ERR(EINVAL)
;
break;
}
@@
-391,7
+391,7
@@
static int i915_emit_box(drm_device_t * dev,
RING_LOCALS;
if (DRM_COPY_FROM_USER_UNCHECKED(&box, &boxes[i], sizeof(box))) {
- return
EFAULT
;
+ return
DRM_ERR(EFAULT)
;
}
if (box.y2 <= box.y1 || box.x2 <= box.x1 || box.y2 <= 0 || box.x2 <= 0) {