1
0
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:
jsg
2024-10-11 03:00:56 +00:00
parent c54916ef0d
commit fcdb63029e

View File

@@ -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,