]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.32.12/drm-radeon-kms-don-t-print-error-on-erestartsys.patch
Remove duplicated commits
[thirdparty/kernel/stable-queue.git] / releases / 2.6.32.12 / drm-radeon-kms-don-t-print-error-on-erestartsys.patch
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.
5
6 From: Dave Airlie <airlied@redhat.com>
7
8 commit 97f23b3d85a4d734a8584dade3a34579931c8f8d upstream.
9
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.
12
13 Signed-off-by: Dave Airlie <airlied@redhat.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15
16 ---
17 drivers/gpu/drm/radeon/radeon_cs.c | 3 ++-
18 1 file changed, 2 insertions(+), 1 deletion(-)
19
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
23 }
24 r = radeon_cs_parser_relocs(&parser);
25 if (r) {
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);
31 return r;