Don't dereference null DisplayModePtr on disabled output.

During initial configuration, outputs which are disabled have null
modes.
This commit is contained in:
Keith Packard 2006-11-16 21:19:20 -08:00
parent c4508c1cad
commit 7a7bb331e1
1 changed files with 2 additions and 1 deletions

View File

@ -1266,7 +1266,8 @@ I830RandRPreInit (ScrnInfoPtr pScrn)
pipe = 0;
enabled = FALSE;
}
pI830->pipes[pipe].desiredMode = *mode;
if (mode)
pI830->pipes[pipe].desiredMode = *mode;
pI830->output[o].pipe = pipe;
pI830->output[o].enabled = enabled;
}