diff options
author | Ilija Hadzic <ilijahadzic@gmail.com> | 2013-11-02 23:00:19 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-11-08 12:33:36 -0500 |
commit | 75b871e2d831700d8fd63079eebbbc36b6731bdf (patch) | |
tree | fd3bb5b05aa1cca4a6d3d9df94266f5b0a9d6616 /drivers/cpufreq/acpi-cpufreq.c | |
parent | 0f57bca922ed2180056aa1f948536236488b4a0d (diff) | |
download | linux-75b871e2d831700d8fd63079eebbbc36b6731bdf.tar.bz2 |
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 <ihadzic@research.bell-labs.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/cpufreq/acpi-cpufreq.c')
0 files changed, 0 insertions, 0 deletions