]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Memory was freed twice during disable
authorLeon Elazar <leon.elazar@amd.com>
Tue, 4 Apr 2017 14:01:07 +0000 (10:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:23:19 +0000 (17:23 -0400)
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>
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c

index 8ddad3a877d614702dde8e5c4c955b504f177539..bd4524ef3a37ee1e6bdee8e755725926e347e4b5 100644 (file)
@@ -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;