From: Russell King Date: Sat, 11 Oct 2014 22:53:35 +0000 (+0100) Subject: drm/armada: fix page_flip refcounting leak X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~11^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5488307dd679ea3fc23fec77dbf27191c2becda;p=pandora-kernel.git 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 Signed-off-by: Russell King --- Reading git-diff-tree failed