diff options
author | Dave Jones <davej@redhat.com> | 2006-10-18 00:26:39 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-10-25 09:40:40 -0700 |
commit | 0d960d26c42888cf327df7faa1a8aa62bab53fa4 (patch) | |
tree | 31008a833fb2f29f5bfdf465cd3654d49a709d29 /drivers/char | |
parent | 958de71b1ab01c20c1b385035235746c9227b24f (diff) |
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/char')
-rw-r--r-- | drivers/char/drm/savage_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/savage_state.c b/drivers/char/drm/savage_state.c index ef2581d1614..1ca1e9cb5a3 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)) |