diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2009-03-02 05:10:54 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-03-02 18:49:46 -0500 |
commit | 4d77c88e912e5eb9480432af09e950ca8995c253 (patch) | |
tree | 7e11cab663107a7beb0fa25e79bb33baa2c6de90 | |
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>
-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) | |||
93 | /* Contention */ | 93 | /* Contention */ |
94 | schedule(); | 94 | schedule(); |
95 | if (signal_pending(current)) { | 95 | if (signal_pending(current)) { |
96 | ret = -ERESTARTSYS; | 96 | ret = -EINTR; |
97 | break; | 97 | break; |
98 | } | 98 | } |
99 | } | 99 | } |