diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2009-03-02 11:10:54 +0100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-03-03 09:49:46 +1000 |
commit | 4d77c88e912e5eb9480432af09e950ca8995c253 (patch) | |
tree | 7e11cab663107a7beb0fa25e79bb33baa2c6de90 /drivers/gpu/drm/drm_lock.c | |
parent | 778ef1e6cbb049c9bcbf405936ee6f2b6e451892 (diff) |
drm: Don't return ERESTARTSYS to user-space.
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>
Diffstat (limited to 'drivers/gpu/drm/drm_lock.c')
-rw-r--r-- | drivers/gpu/drm/drm_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_lock.c b/drivers/gpu/drm/drm_lock.c index 46e7b28f0707..b03586fdabbd 100644 --- a/drivers/gpu/drm/drm_lock.c +++ b/drivers/gpu/drm/drm_lock.c @@ -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; } } |