summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-12-02 12:58:00 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2009-12-02 14:17:15 +0000
commitb73612e4fd69565aa2c5c2e9677f3e0af1945f7d (patch)
treeba5fb157f09cd5876dd43c38a4ebdfcd16886c60
parentacb4aa671507aa181b3ff50ccf26a1c0d705a309 (diff)
intel: Repeat execbuffer after EINTR
EAGAIN cannot be raised by the current code, but the system call maybe interrupted and so return EINTR. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--intel/intel_bufmgr_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index bb20f43b..239f36d1 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -1293,7 +1293,7 @@ drm_intel_gem_bo_exec(drm_intel_bo *bo, int used,
ret = ioctl(bufmgr_gem->fd,
DRM_IOCTL_I915_GEM_EXECBUFFER,
&execbuf);
- } while (ret != 0 && errno == EAGAIN);
+ } while (ret != 0 && errno == EINTR);
if (ret != 0) {
ret = -errno;