xf86crtc: oh mon could be NULL, so check before quirks

This commit is contained in:
Dave Airlie 2007-12-04 12:24:47 +11:00
parent a9df4bb555
commit 678f786715

View File

@ -2186,7 +2186,8 @@ xf86OutputGetEDID (xf86OutputPtr output, I2CBusPtr pDDCBus)
xf86MonPtr mon;
mon = xf86DoEDID_DDC2 (scrn->scrnIndex, pDDCBus);
xf86DDCApplyQuirks (scrn->scrnIndex, mon);
if (mon)
xf86DDCApplyQuirks (scrn->scrnIndex, mon);
return mon;
}