[PATCH 2/2] drm/i915/HAX: Kill dpt after destroying object
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Thu Jan 27 14:08:10 UTC 2022
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_fb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
index 23cfe2e5ce2a..679472ce3634 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.c
+++ b/drivers/gpu/drm/i915/display/intel_fb.c
@@ -1767,11 +1767,11 @@ static void intel_user_framebuffer_destroy(struct drm_framebuffer *fb)
drm_framebuffer_cleanup(fb);
+ intel_frontbuffer_put(intel_fb->frontbuffer);
+
if (intel_fb_uses_dpt(fb))
intel_dpt_destroy(intel_fb->dpt_vm);
- intel_frontbuffer_put(intel_fb->frontbuffer);
-
kfree(intel_fb);
}
--
2.34.1
More information about the Intel-gfx-trybot
mailing list