scripts/getver.sh: avoid use of git rev-list --count
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0287-drm-vc4-Fix-a-framebuffer-reference-leak-on-async-fl.patch
1 From 73902ea67be85e6a5d440fed2c53e5364125c4e1 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Fri, 5 Feb 2016 15:06:15 -0800
4 Subject: [PATCH 287/381] drm/vc4: Fix a framebuffer reference leak on async
5 flip interrupt.
6
7 We'd need X to queue up an async pageflip while another is
8 outstanding, and then take a SIGIO. I think X actually avoids sending
9 out the next pageflip while one's already queued, but I'm not sure.
10
11 Signed-off-by: Eric Anholt <eric@anholt.net>
12 (cherry picked from commit 48627eb8dc55c60d35794105f6f79fb627347dbd)
13 ---
14 drivers/gpu/drm/vc4/vc4_crtc.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 --- a/drivers/gpu/drm/vc4/vc4_crtc.c
18 +++ b/drivers/gpu/drm/vc4/vc4_crtc.c
19 @@ -527,6 +527,7 @@ static int vc4_async_page_flip(struct dr
20 /* Make sure all other async modesetes have landed. */
21 ret = down_interruptible(&vc4->async_modeset);
22 if (ret) {
23 + drm_framebuffer_unreference(fb);
24 kfree(flip_state);
25 return ret;
26 }