]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/radeon/kms: don't print error on -ERESTARTSYS.
authorDave Airlie <airlied@redhat.com>
Fri, 19 Mar 2010 00:33:44 +0000 (10:33 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:47:46 +0000 (07:47 -0700)
commit 97f23b3d85a4d734a8584dade3a34579931c8f8d upstream.

We can get this if the user moves the mouse when we are waiting to move
some stuff around in the validate. Don't fail.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/radeon_cs.c

index 8c56e95c73cb6ad04e4c3049f0eb93203fb2b3df..9933c2c706480ba262a637d8ec69766a1c7c3b6b 100644 (file)
@@ -248,7 +248,8 @@ int radeon_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
        }
        r = radeon_cs_parser_relocs(&parser);
        if (r) {
-               DRM_ERROR("Failed to parse relocation !\n");
+               if (r != -ERESTARTSYS)
+                       DRM_ERROR("Failed to parse relocation %d!\n", r);
                radeon_cs_parser_fini(&parser, r);
                mutex_unlock(&rdev->cs_mutex);
                return r;