summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-10-18 00:26:39 -0400
committerDave Airlie <airlied@linux.ie>2006-10-25 09:40:40 -0700
commit0d960d26c42888cf327df7faa1a8aa62bab53fa4 (patch)
tree31008a833fb2f29f5bfdf465cd3654d49a709d29 /drivers
parent958de71b1ab01c20c1b385035235746c9227b24f (diff)
downloadop-kernel-dev-0d960d26c42888cf327df7faa1a8aa62bab53fa4.zip
op-kernel-dev-0d960d26c42888cf327df7faa1a8aa62bab53fa4.tar.gz
fix return code in error case.
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/drm/savage_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/savage_state.c b/drivers/char/drm/savage_state.c
index ef2581d..1ca1e9c 100644
--- 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))
OpenPOWER on IntegriCloud