Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1498446 > unrolled thread

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

Started byEric Anholt <eric@anholt.net>
First post2016-10-10 19:40 +0200
Last post2016-10-10 19:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] drm/vc4: Fix memory leak of the CRTC state. Eric Anholt <eric@anholt.net> - 2016-10-10 19:40 +0200

#1498446 — [PATCH] drm/vc4: Fix memory leak of the CRTC state.

FromEric Anholt <eric@anholt.net>
Date2016-10-10 19:40 +0200
Subject[PATCH] drm/vc4: Fix memory leak of the CRTC state.
Message-ID<sqMIp-441-15@gated-at.bofh.it>
The underscores variant frees the pointers inside, while the
no-underscores variant calls underscores and then frees the struct.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: d8dbf44f13b9 ("drm/vc4: Make the CRTCs cooperate on allocating display lists.")
Cc: stable@vger.kernel.org
---
 drivers/gpu/drm/vc4/vc4_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c
index 7f08d681a74b..d544ff9b0d46 100644
--- a/drivers/gpu/drm/vc4/vc4_crtc.c
+++ b/drivers/gpu/drm/vc4/vc4_crtc.c
@@ -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 = {
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web