Commit e885d647 authored by Jarif Aftab's avatar Jarif Aftab Committed by Alex Deucher

drm/amd/display: Added Check For dc->res_pool

[WHY]
-To ensure dc->res_pool has been initialized

[HOW]
-Check if dc->res_pool is true in
the if statement
Reviewed-by: default avatarMartin Leung <Martin.Leung@amd.com>
Acked-by: default avatarPavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: default avatarJarif Aftab <jaraftab@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d29b7980
......@@ -809,7 +809,7 @@ void dc_stream_set_static_screen_params(struct dc *dc,
static void dc_destruct(struct dc *dc)
{
// reset link encoder assignment table on destruct
if (dc->res_pool->funcs->link_encs_assign)
if (dc->res_pool && dc->res_pool->funcs->link_encs_assign)
link_enc_cfg_init(dc, dc->current_state);
if (dc->current_state) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment