Commit 80eeff3e authored by Matthieu Herrb's avatar Matthieu Herrb Committed by Povilas Kanapickas
Browse files

Make xf86CompatOutput() return NULL when there are no privates

Some drivers (mach64 w/o DRI for instance) don't initialize privates.
Signed-off-by: default avatarMatthieu Herrb <>
parent b656b0aa
Pipeline #439395 passed with stages
in 2 minutes and 45 seconds
......@@ -839,6 +839,9 @@ xf86CompatOutput(ScrnInfoPtr pScrn)
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
if (xf86CrtcConfigPrivateIndex == -1)
return NULL;
if (config->compat_output < 0)
return NULL;
return config->output[config->compat_output];
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