aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-10-10 12:44:06 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-01 02:33:03 -0500
commit32600835ebe1bd972d01ce7f331b87bd80705d30 (patch)
tree83d13bc344e037e08c0693d227fde8b57246c976 /drivers/gpu/drm
parent4c741e2adb351a44d1f4bc210aafd382939ac7ae (diff)
drm/vc4: Fix memory leak of the CRTC state.
commit 7622b25543665567d8830a63210385b7d705924b upstream. 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.") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/vc4/vc4_crtc.c2
1 files changed, 1 insertions, 1 deletions
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,
832 832
833 } 833 }
834 834
835 __drm_atomic_helper_crtc_destroy_state(state); 835 drm_atomic_helper_crtc_destroy_state(crtc, state);
836} 836}
837 837
838static const struct drm_crtc_funcs vc4_crtc_funcs = { 838static const struct drm_crtc_funcs vc4_crtc_funcs = {