summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
diff options
context:
space:
mode:
authorLeon Elazar <leon.elazar@amd.com>2017-04-04 10:01:07 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:23:19 -0400
commit6e5d1c829ba6a53bdd0f18a872a5178e9620ecab (patch)
treedda719e07be9cbdcab7715637d40ebf30ce32a1c /drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
parent632550d71fcf78d495cfd1d321427e634b662f23 (diff)
downloadlinux-6e5d1c829ba6a53bdd0f18a872a5178e9620ecab.tar.bz2
drm/amd/display: Memory was freed twice during disable
1. get_ss_info_from_atombios function was allocating the memory populating the provided pointer but them freeing the memory. Since the pointer was return as a valid value, we are trying to free the same memory during clock resource destruction Signed-off-by: Leon Elazar <leon.elazar@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
index 8ddad3a877d6..bd4524ef3a37 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
@@ -1035,7 +1035,6 @@ static void get_ss_info_from_atombios(
}
*spread_spectrum_data = ss_data;
- dm_free(ss_data);
dm_free(ss_info);
return;