Skip to contentSkip to conversation

drm/vc4: Fix memory leak of the CRTC state.

PATCH New Eric Anholt 1 participant 1 message Oct 10, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/vc4: Fix memory leak of the CRTC state.

The underscores variant frees the pointers inside, while the no-underscores variant calls underscores and then frees the struct.

Fixes d8dbf44f13b9 ("drm/vc4: Make the CRTCs cooperate on allocating display lists.")
---
 drivers/gpu/drm/vc4/vc4_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vc4/vc4_crtc.c +1 -1
index 7f08d681a74b..d544ff9b0d46 100644
@@ -832,7 +832,7 @@ static void vc4_crtc_destroy_state(struct drm_crtc *crtc,
 
 	}
 
-	__drm_atomic_helper_crtc_destroy_state(state);
+	drm_atomic_helper_crtc_destroy_state(crtc, state);
 }
 
 static const struct drm_crtc_funcs vc4_crtc_funcs = {
Signature · 1 line
2.9.3