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)
commit6e5d1c829ba6a53bdd0f18a872a5178e9620ecab
treedda719e07be9cbdcab7715637d40ebf30ce32a1c
parent632550d71fcf78d495cfd1d321427e634b662f23
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>
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c