Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15c35334 authored by Owain Ainsworth's avatar Owain Ainsworth Committed by Dave Airlie
Browse files

drm/i915: Don't return error in evict_everything when we get to the end.



Returning -ENOMEM errored all the way out of execbuf, so the rendering never
occurred.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent fae7043c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1104,6 +1104,8 @@ i915_gem_evict_everything(struct drm_device *dev)
		if (ret != 0)
			break;
	}
	if (ret == -ENOMEM)
		return 0;
	return ret;
}