Commit 0d960d26 authored by Dave Jones's avatar Dave Jones Committed by Dave Airlie

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: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 958de71b
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment