提交 5aa72db7 编写于 作者: C Corbin McElhanney 提交者: Alex Deucher

drm/amd/display: Fix accessing freed memory

Signed-off-by: NCorbin McElhanney <corbin.mcelhanney@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 cbb4d72e
......@@ -1714,8 +1714,11 @@ void dc_update_planes_and_stream(struct dc *dc,
}
if (core_dc->current_context != context) {
dc_release_validate_context(core_dc->current_context);
struct validate_context *old = core_dc->current_context;
core_dc->current_context = context;
dc_release_validate_context(old);
}
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册