Skip to content

Commit

Permalink
drm: Don't return ERESTARTSYS to user-space.
Browse files Browse the repository at this point in the history
That return code is for in-kernel use only.
Use EINTR instead.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Mar 2, 2009
1 parent 778ef1e commit 4d77c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int drm_lock(struct drm_device *dev, void *data, struct drm_file *file_priv)
/* Contention */
schedule();
if (signal_pending(current)) {
ret = -ERESTARTSYS;
ret = -EINTR;
break;
}
}
Expand Down

0 comments on commit 4d77c88

Please sign in to comment.