[Intel-gfx] [PATCH 01/13] squash! drm/i915: Improve how the memory for crtc state is allocated

Matt Roper matthew.d.roper at intel.com
Mon Jan 19 19:57:34 PST 2015


Cc: Ander Conselvan de Oliveira <conselvan2 at gmail.com>
---
 drivers/gpu/drm/i915/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index d8b58d6..c5cbcd7 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8950,9 +8950,9 @@ static void intel_crtc_destroy(struct drm_crtc *crtc)
 		kfree(work);
 	}
 
+	intel_crtc_set_state(intel_crtc, NULL);
 	drm_crtc_cleanup(crtc);
 
-	intel_crtc_set_state(intel_crtc, NULL);
 	kfree(intel_crtc);
 }
 
-- 
1.8.5.1



More information about the Intel-gfx mailing list