[PATCH 3/3] drm/i915: don't call I915_VMA_RELEASE_MAP

Matthew Auld matthew.auld at intel.com
Wed Nov 25 17:10:23 UTC 2020


We should only pass I915_VMA_RELEASE_MAP if we successfully mapped the
object.

Signed-off-by: Matthew Auld <matthew.auld at intel.com>
---
 drivers/gpu/drm/i915/display/intel_dsb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dsb.c b/drivers/gpu/drm/i915/display/intel_dsb.c
index f98bc3a467fd..c9089c1d2732 100644
--- a/drivers/gpu/drm/i915/display/intel_dsb.c
+++ b/drivers/gpu/drm/i915/display/intel_dsb.c
@@ -306,7 +306,7 @@ void intel_dsb_prepare(struct intel_crtc_state *crtc_state)
 	buf = i915_gem_object_pin_map(vma->obj, I915_MAP_WC);
 	if (IS_ERR(buf)) {
 		drm_err(&i915->drm, "Command buffer creation failed\n");
-		i915_vma_unpin_and_release(&vma, I915_VMA_RELEASE_MAP);
+		i915_vma_unpin_and_release(&vma, 0);
 		kfree(dsb);
 		goto out;
 	}
-- 
2.26.2



More information about the Intel-gfx-trybot mailing list