ODROID-U3 xorg-server debian package fork :
[deb_xorg-server.git] / debian / patches / 232-xf86compatoutput-valgrind.patch
CommitLineData
7217e0ca
ML
1--- a/hw/xfree86/modes/xf86Crtc.h
2+++ b/hw/xfree86/modes/xf86Crtc.h
4db25562 3@@ -727,6 +727,8 @@ static _X_INLINE xf86OutputPtr
7217e0ca
ML
4 xf86CompatOutput(ScrnInfoPtr pScrn)
5 {
6 xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
7+ if (config->compat_output < 0)
8+ return NULL;
9
10 return config->output[config->compat_output];
11 }