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

Commit 1cdf7fef authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Don't mask the return code whilst relocating.



The return from move_to_gtt_domain() may indicate a pending signal which
needs to handled as opposed to an actual error, for instance, so report
the original return value rather than forcing an EINVAL.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent ae681d96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3454,7 +3454,7 @@ i915_gem_object_pin_and_relocate(struct drm_gem_object *obj,
		if (ret != 0) {
			drm_gem_object_unreference(target_obj);
			i915_gem_object_unpin(obj);
			return -EINVAL;
			return ret;
		}

		/* Map the page containing the relocation we're going to