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
..
2014-09-15 16:20:56 -07:00
2014-09-09 13:52:18 -07:00
2014-08-06 20:06:14 -07:00
2014-08-05 21:16:46 -07:00
2014-08-15 17:06:40 -04:00
2014-09-06 12:12:09 -07:00
2014-10-01 16:46:34 -04:00
2014-09-25 11:55:50 +01:00
2014-09-24 09:46:29 -07:00
2014-07-30 00:23:09 +02:00
2014-08-08 11:14:29 -07:00
2014-10-05 10:16:11 -07:00
2014-08-25 15:39:22 -04:00
2014-09-08 16:33:56 -07:00
2014-10-05 10:16:11 -07:00
2014-09-11 16:52:29 -07:00
2014-08-04 18:34:04 -07:00