projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
958de71
)
fix return code in error case.
author
Dave Jones
<davej@redhat.com>
Wed, 18 Oct 2006 04:26:39 +0000
(
00:26
-0400)
committer
Dave Airlie
<airlied@linux.ie>
Wed, 25 Oct 2006 16:40:40 +0000
(09:40 -0700)
The other failure returns in this function are negative, so make
this one do the same.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/savage_state.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/savage_state.c
b/drivers/char/drm/savage_state.c
index ef2581d16146de03a6b9e717b9ba701490918038..1ca1e9cb5a3396be02753a0d584d90e269f5b73c 100644
(file)
--- a/
drivers/char/drm/savage_state.c
+++ b/
drivers/char/drm/savage_state.c
@@
-994,7
+994,7
@@
int savage_bci_cmdbuf(DRM_IOCTL_ARGS)
if (cmdbuf.size) {
kcmd_addr = drm_alloc(cmdbuf.size * 8, DRM_MEM_DRIVER);
if (kcmd_addr == NULL)
- return
ENOMEM
;
+ return
DRM_ERR(ENOMEM)
;
if (DRM_COPY_FROM_USER(kcmd_addr, cmdbuf.cmd_addr,
cmdbuf.size * 8))