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

Commit 85cd4612 authored by Chris Wilson's avatar Chris Wilson Committed by Eric Anholt
Browse files

drm/i915: Check error code whilst moving buffer to GTT domain.

parent 3d1cc470
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -105,7 +105,11 @@ static int intelfb_create(struct intel_fbdev *ifbdev,
	}

	/* Flush everything out, we'll be doing GTT only from now on */
	i915_gem_object_set_to_gtt_domain(fbo, 1);
	ret = i915_gem_object_set_to_gtt_domain(fbo, 1);
	if (ret) {
		DRM_ERROR("failed to bind fb: %d.\n", ret);
		goto out_unpin;
	}

	info = framebuffer_alloc(0, device);
	if (!info) {