From: Ilija Hadzic Date: Sun, 3 Nov 2013 03:00:19 +0000 (-0400) Subject: drm/radeon/kms: unpin fb in atombios crtc disable X-Git-Tag: v3.13-rc1~76^2~8^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75b871e2d831700d8fd63079eebbbc36b6731bdf;p=pandora-kernel.git drm/radeon/kms: unpin fb in atombios crtc disable When drm_helper_disable_unused_functions calls disable function of the CRTC, it also sets the crtc->fb pointer to NULL. This can later (when the mode on that CRTC is setup again from user space) cause ***_do_set_base functions to "think" that there is no old buffer and skip the unpinning code. Consequently, the buffer that has been NULL-ified in drm_helper_disable_unused_functions will never be unpinned causing a leak in VRAM. This patch plugs the leak by unpinning the frame buffer in crtc_disable function. Signed-off-by: Ilija Hadzic Signed-off-by: Alex Deucher --- Reading git-diff-tree failed