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>
This commit is contained in:
parent
632550d71f
commit
6e5d1c829b
@ -1035,7 +1035,6 @@ static void get_ss_info_from_atombios(
|
|||||||
}
|
}
|
||||||
|
|
||||||
*spread_spectrum_data = ss_data;
|
*spread_spectrum_data = ss_data;
|
||||||
dm_free(ss_data);
|
|
||||||
dm_free(ss_info);
|
dm_free(ss_info);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user