Commit ff99645f authored by Mykola Lysenko's avatar Mykola Lysenko Committed by Michel Dänzer

Check for NULL koutput in drmmode_output_dpms

This situation happens whit start of usage of DRM DP MST framework,
when connectors created and destroyed dynamically.
Signed-off-by: default avatarMykola Lysenko <>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <>
(cherry picked from commit f4107f67)
parent 755e6ff2
......@@ -1117,6 +1117,9 @@ static void drmmode_output_dpms(xf86OutputPtr output, int mode)
drmModeConnectorPtr koutput = drmmode_output->mode_output;
AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(output->scrn);
if (!koutput)
if (mode != DPMSModeOn && crtc)
drmmode_do_crtc_dpms(crtc, mode);
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