1 From 97f23b3d85a4d734a8584dade3a34579931c8f8d Mon Sep 17 00:00:00 2001
2 From: Dave Airlie <airlied@redhat.com>
3 Date: Fri, 19 Mar 2010 10:33:44 +1000
4 Subject: drm/radeon/kms: don't print error on -ERESTARTSYS.
6 From: Dave Airlie <airlied@redhat.com>
8 commit 97f23b3d85a4d734a8584dade3a34579931c8f8d upstream.
10 We can get this if the user moves the mouse when we are waiting to move
11 some stuff around in the validate. Don't fail.
13 Signed-off-by: Dave Airlie <airlied@redhat.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 drivers/gpu/drm/radeon/radeon_cs.c | 3 ++-
18 1 file changed, 2 insertions(+), 1 deletion(-)
20 --- a/drivers/gpu/drm/radeon/radeon_cs.c
21 +++ b/drivers/gpu/drm/radeon/radeon_cs.c
22 @@ -247,7 +247,8 @@ int radeon_cs_ioctl(struct drm_device *d
24 r = radeon_cs_parser_relocs(&parser);
26 - DRM_ERROR("Failed to parse relocation !\n");
27 + if (r != -ERESTARTSYS)
28 + DRM_ERROR("Failed to parse relocation %d!\n", r);
29 radeon_cs_parser_fini(&parser, r);
30 mutex_unlock(&rdev->cs_mutex);