Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205172
b: refs/heads/master
c: 8dc1775
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson authored and Eric Anholt committed Aug 2, 2010
1 parent 38275c5 commit 69f943f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be72615bcf4d5b7b314d836c5e1b4baa4b65dad1
refs/heads/master: 8dc1775dce10d5e47d2805665804fddf39ea3a90
11 changes: 6 additions & 5 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1967,11 +1967,12 @@ i915_gem_object_unbind(struct drm_gem_object *obj)
* before we unbind.
*/
ret = i915_gem_object_set_to_cpu_domain(obj, 1);
if (ret) {
if (ret != -ERESTARTSYS)
DRM_ERROR("set_domain failed: %d\n", ret);
if (ret == -ERESTARTSYS)
return ret;
}
/* Continue on if we fail due to EIO, the GPU is hung so we
* should be safe and we need to cleanup or else we might
* cause memory corruption through use-after-free.
*/

BUG_ON(obj_priv->active);

Expand Down Expand Up @@ -2007,7 +2008,7 @@ i915_gem_object_unbind(struct drm_gem_object *obj)

trace_i915_gem_object_unbind(obj);

return 0;
return ret;
}

static struct drm_gem_object *
Expand Down

0 comments on commit 69f943f

Please sign in to comment.