提交 6e5d1c82 编写于 作者: L Leon Elazar 提交者: Alex Deucher

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: NLeon Elazar <leon.elazar@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 632550d7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册