diff --git a/drivers/gpu/drm/xe/display/xe_plane_initial.c b/drivers/gpu/drm/xe/display/xe_plane_initial.c index bd5d588e8fbf774e534dcd9236db5fc4e3b09047..a2ef0823ed028f62567da672f172837a1e4b7698 100644 --- a/drivers/gpu/drm/xe/display/xe_plane_initial.c +++ b/drivers/gpu/drm/xe/display/xe_plane_initial.c @@ -230,6 +230,8 @@ intel_find_initial_plane_obj(struct intel_crtc *crtc, atomic_or(plane->frontbuffer_bit, &to_intel_framebuffer(fb)->bits); + plane_config->vma = vma; + /* * Flip to the newly created mapping ASAP, so we can re-use the * first part of GGTT for WOPCM, prevent flickering, and prevent @@ -263,6 +265,9 @@ static void plane_config_fini(struct intel_initial_plane_config *plane_config) else kfree(fb); } + + if (plane_config->vma) + drm_gem_object_put(&plane_config->vma->bo->ttm.base); } void intel_crtc_initial_plane_config(struct intel_crtc *crtc)