Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7622b255 authored by Eric Anholt's avatar Eric Anholt
Browse files

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.

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Fixes: d8dbf44f ("drm/vc4: Make the CRTCs cooperate on allocating display lists.")
Cc: stable@vger.kernel.org
parent 7ce7d89f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -839,7 +839,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 = {