]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm: Don't return ERESTARTSYS to user-space.
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 2 Mar 2009 10:10:54 +0000 (11:10 +0100)
committerDave Airlie <airlied@linux.ie>
Mon, 2 Mar 2009 23:49:46 +0000 (09:49 +1000)
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>
drivers/gpu/drm/drm_lock.c

index 46e7b28f0707397d545948dc21bbcc272f16eb6f..b03586fdabbd8eb8d709c8b0be2a8f30ae4fa297 100644 (file)
@@ -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;
                }
        }