summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@optimus.localdomain>2006-12-19 16:58:27 +1100
committerDave Airlie <airlied@linux.ie>2006-12-19 17:58:03 +1100
commitcb280ad3c0b048fe5b024439af70e9fcc8d04269 (patch)
treecf0d6eafae4457a5ecedd9b8d7dc85c07ec059fb /shared-core
parent696f2bfbd1b6da73893bce082308a43878e6ab75 (diff)
fix missing DRM_ERR from kernel
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/savage_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/savage_state.c b/shared-core/savage_state.c
index 5c8a43eb..acc98f89 100644
--- a/shared-core/savage_state.c
+++ b/shared-core/savage_state.c
@@ -993,7 +993,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))