Skip to content

Commit

Permalink
fix return code in error case.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Jones authored and Dave Airlie committed Oct 25, 2006
1 parent 958de71 commit 0d960d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/drm/savage_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0d960d2

Please sign in to comment.