summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-03-19 10:33:44 +1000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-26 07:41:14 -0700
commit1d00cd4e5294606417893ceab6a357052d92159a (patch)
tree505a3fe31c14406e965c5b59d8b42b509ae519ce
parente72f38d31b4a9a5e6c6207a815067be361e4b872 (diff)
downloadlwn-1d00cd4e5294606417893ceab6a357052d92159a.tar.gz
lwn-1d00cd4e5294606417893ceab6a357052d92159a.zip
drm/radeon/kms: don't print error on -ERESTARTSYS.
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>
-rw-r--r--drivers/gpu/drm/radeon/radeon_cs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c
index 484f79163346..20c52da0f62f 100644
--- a/drivers/gpu/drm/radeon/radeon_cs.c
+++ b/drivers/gpu/drm/radeon/radeon_cs.c
@@ -247,7 +247,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;