Commit 63b6c7be authored by Dan Carpenter's avatar Dan Carpenter Committed by Jani Nikula

drm/i915: fix an error code in intel_overlay_do_put_image()

This code should propagate the error from intel_overlay_pin_fb()
but currently it returns success.

Fixes: 1b321026 ("drm/i915: Pass ww ctx to intel_pin_to_display_plane")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/YHaFcEzcnh/hk1/Q@mwanda
(cherry picked from commit 103b8cba)
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 3aea49fd
...@@ -803,8 +803,10 @@ static int intel_overlay_do_put_image(struct intel_overlay *overlay, ...@@ -803,8 +803,10 @@ static int intel_overlay_do_put_image(struct intel_overlay *overlay,
atomic_inc(&dev_priv->gpu_error.pending_fb_pin); atomic_inc(&dev_priv->gpu_error.pending_fb_pin);
vma = intel_overlay_pin_fb(new_bo); vma = intel_overlay_pin_fb(new_bo);
if (IS_ERR(vma)) if (IS_ERR(vma)) {
ret = PTR_ERR(vma);
goto out_pin_section; goto out_pin_section;
}
i915_gem_object_flush_frontbuffer(new_bo, ORIGIN_DIRTYFB); i915_gem_object_flush_frontbuffer(new_bo, ORIGIN_DIRTYFB);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment