summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-10-03 06:14:58 +0000
committerAdam Jackson <ajax@nwnk.net>2005-10-03 06:14:58 +0000
commit9147c20e5ff662ac511a19e7623b406dffee2242 (patch)
treef37ecedcdc3f4dfebba1e359e25ab5efba46f8af
parent7e2090e3ebf0bd699d66d336353c097d658a86ae (diff)
Bug #4001: Don't crash when PanelSize is unset. (Alan Coopersmith)
-rw-r--r--src/radeon_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index d52f898f..caa85ce2 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -2941,7 +2941,7 @@ static void RADEONUpdatePanelSize(ScrnInfoPtr pScrn)
xf86MonPtr ddc = pScrn->monitor->DDC;
DisplayModePtr p;
- if (info->UseBiosDividers && info->DotClock != 0)
+ if ((info->UseBiosDividers && info->DotClock != 0) || (ddc == NULL))
return;
/* Go thru detailed timing table first */