From 525b311bf869d7e252d744e501e227263a955c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sun, 24 Apr 2016 13:03:39 +0200 Subject: brcm2708: update linux 4.4 patches to latest version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As usual these patches were extracted from the raspberry pi repo: https://github.com/raspberrypi/linux/tree/rpi-4.4.y Signed-off-by: Álvaro Fernández Rojas --- ...-a-framebuffer-reference-leak-on-async-fl.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 target/linux/brcm2708/patches-4.4/0288-drm-vc4-Fix-a-framebuffer-reference-leak-on-async-fl.patch (limited to 'target/linux/brcm2708/patches-4.4/0288-drm-vc4-Fix-a-framebuffer-reference-leak-on-async-fl.patch') diff --git a/target/linux/brcm2708/patches-4.4/0288-drm-vc4-Fix-a-framebuffer-reference-leak-on-async-fl.patch b/target/linux/brcm2708/patches-4.4/0288-drm-vc4-Fix-a-framebuffer-reference-leak-on-async-fl.patch new file mode 100644 index 0000000000..01e1fda0c5 --- /dev/null +++ b/target/linux/brcm2708/patches-4.4/0288-drm-vc4-Fix-a-framebuffer-reference-leak-on-async-fl.patch @@ -0,0 +1,26 @@ +From af6fb397532633e85bb101801d8156b2263aa54f Mon Sep 17 00:00:00 2001 +From: Eric Anholt +Date: Fri, 5 Feb 2016 15:06:15 -0800 +Subject: [PATCH 288/304] drm/vc4: Fix a framebuffer reference leak on async + flip interrupt. + +We'd need X to queue up an async pageflip while another is +outstanding, and then take a SIGIO. I think X actually avoids sending +out the next pageflip while one's already queued, but I'm not sure. + +Signed-off-by: Eric Anholt +(cherry picked from commit 48627eb8dc55c60d35794105f6f79fb627347dbd) +--- + drivers/gpu/drm/vc4/vc4_crtc.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/gpu/drm/vc4/vc4_crtc.c ++++ b/drivers/gpu/drm/vc4/vc4_crtc.c +@@ -527,6 +527,7 @@ static int vc4_async_page_flip(struct dr + /* Make sure all other async modesetes have landed. */ + ret = down_interruptible(&vc4->async_modeset); + if (ret) { ++ drm_framebuffer_unreference(fb); + kfree(flip_state); + return ret; + } -- cgit v1.2.3