brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0525-drm-vc4-Fix-memory-leak-of-the-CRTC-state.patch
1 From 26f0d649e4cdaff8d9aa9f151821f7d2219ddb54 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
6 The underscores variant frees the pointers inside, while the
7 no-underscores variant calls underscores and then frees the struct.
8
9 Signed-off-by: Eric Anholt <eric@anholt.net>
10 Fixes: d8dbf44f13b9 ("drm/vc4: Make the CRTCs cooperate on allocating display lists.")
11 Cc: stable@vger.kernel.org
12 ---
13 drivers/gpu/drm/vc4/vc4_crtc.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/gpu/drm/vc4/vc4_crtc.c
17 +++ b/drivers/gpu/drm/vc4/vc4_crtc.c
18 @@ -862,7 +862,7 @@ static void vc4_crtc_destroy_state(struc
19
20 }
21
22 - __drm_atomic_helper_crtc_destroy_state(crtc, state);
23 + drm_atomic_helper_crtc_destroy_state(crtc, state);
24 }
25
26 static const struct drm_crtc_funcs vc4_crtc_funcs = {