linux/drivers/gpu/drm/armada
Russell King c5488307dd drm/armada: fix page_flip refcounting leak
A refcounting leak was found of the original frame buffer attached to
the CRTC when using the page_flip ioctl, resulting in the frame buffer
never being freed.

This was not obvious initially, as if the page flip subsequently
re-attaches the original frame buffer, the refcounts will be balanced.
However, if the original frame buffer is freed, then it will be leaked.

Fix this by ensuring that we take a reference on the incoming fb, but
rely on the queued work to drop that ref count.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-10-17 16:59:07 +01:00
..
armada_510.c drm/armada: update Armada 510 (Dove) to use "ext_ref_clk1" as the clock 2014-07-11 15:40:14 +01:00
armada_crtc.c drm/armada: fix page_flip refcounting leak 2014-10-17 16:59:07 +01:00
armada_crtc.h drm/armada: register crtc with port 2014-07-11 20:34:47 +01:00
armada_debugfs.c DRM: Armada: convert to use simple_open() 2013-11-06 12:02:36 +10:00
armada_drm.h drm/armada: make variant a CRTC thing 2014-07-03 16:24:48 +01:00
armada_drv.c drm/armada: add IRQ support back 2014-10-17 16:59:06 +01:00
armada_fb.c
armada_fb.h
armada_fbdev.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
armada_gem.c dma-buf: use reservation objects 2014-07-08 13:03:20 -07:00
armada_gem.h
armada_hw.h
armada_ioctlP.h
armada_output.c drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
armada_output.h
armada_overlay.c
armada_slave.c
armada_slave.h
Kconfig DRM: armada: fix missing DRM_KMS_FB_HELPER select 2014-01-27 23:47:14 +00:00
Makefile