DF-1550 / fix.diff
diff --git a/sys/dev/drm/amd/powerplay/hwmgr/vega10_powertune.c b/sys/dev/drm/amd/powerplay/hwmgr/vega10_powertune.c --- a/sys/dev/drm/amd/powerplay/hwmgr/vega10_powertune.c +++ b/sys/dev/drm/amd/powerplay/hwmgr/vega10_powertune.c @@ -1292,6 +1292,8 @@ struct phm_ppt_v2_information *table_info = (struct phm_ppt_v2_information *)(hwmgr->pptable); struct phm_tdp_table *tdp_table = table_info->tdp_table; + if (tdp_table == NULL) + return; PPTable_t *table = &(data->smc_state_table.pp_table); table->SocketPowerLimit = cpu_to_le16( |