Skip to content

Commit

Permalink
drm/i915: Don't return error in evict_everything when we get to the end.
Browse files Browse the repository at this point in the history
Returning -ENOMEM errored all the way out of execbuf, so the rendering never
occurred.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Owain Ainsworth authored and Dave Airlie committed Dec 9, 2008
1 parent fae7043 commit 15c3533
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,8 @@ i915_gem_evict_everything(struct drm_device *dev)
if (ret != 0)
break;
}
if (ret == -ENOMEM)
return 0;
return ret;
}

Expand Down

0 comments on commit 15c3533

Please sign in to comment.