0525-drm-vc4-Fix-memory-leak-of-the-CRTC-state.patch 898 B

1234567891011121314151617181920212223242526
  1. From c0b690ea72068de3cc9e48e99efa1d2cc72a9d0c Mon Sep 17 00:00:00 2001
  2. From: Eric Anholt <eric@anholt.net>
  3. Date: Mon, 10 Oct 2016 09:44:06 -0700
  4. Subject: [PATCH] drm/vc4: Fix memory leak of the CRTC state.
  5. The underscores variant frees the pointers inside, while the
  6. no-underscores variant calls underscores and then frees the struct.
  7. Signed-off-by: Eric Anholt <eric@anholt.net>
  8. Fixes: d8dbf44f13b9 ("drm/vc4: Make the CRTCs cooperate on allocating display lists.")
  9. Cc: stable@vger.kernel.org
  10. ---
  11. drivers/gpu/drm/vc4/vc4_crtc.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. --- a/drivers/gpu/drm/vc4/vc4_crtc.c
  14. +++ b/drivers/gpu/drm/vc4/vc4_crtc.c
  15. @@ -862,7 +862,7 @@ static void vc4_crtc_destroy_state(struc
  16. }
  17. - __drm_atomic_helper_crtc_destroy_state(crtc, state);
  18. + drm_atomic_helper_crtc_destroy_state(crtc, state);
  19. }
  20. static const struct drm_crtc_funcs vc4_crtc_funcs = {