mirror of
https://github.com/openbsd/src.git
synced 2026-05-01 17:46:35 +00:00
drm/amd/display: enable_hpo_dp_link_output: Check link_res->hpo_dp_link_enc before using it
From Alex Hung e0b065ec636d66022ab7057e1635e9a941a42820 in linux-6.6.y/6.6.55 d925c04d974c657d10471c0c2dba3bc9c7d994ee in mainline linux
This commit is contained in:
@@ -110,6 +110,11 @@ void enable_hpo_dp_link_output(struct dc_link *link,
|
||||
enum clock_source_id clock_source,
|
||||
const struct dc_link_settings *link_settings)
|
||||
{
|
||||
if (!link_res->hpo_dp_link_enc) {
|
||||
DC_LOG_ERROR("%s: invalid hpo_dp_link_enc\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
if (link->dc->res_pool->dccg->funcs->set_symclk32_le_root_clock_gating)
|
||||
link->dc->res_pool->dccg->funcs->set_symclk32_le_root_clock_gating(
|
||||
link->dc->res_pool->dccg,
|
||||
|
||||
Reference in New Issue
Block a user