diff options
author | Adam Jackson <ajax@nwnk.net> | 2005-10-03 06:14:58 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2005-10-03 06:14:58 +0000 |
commit | 9147c20e5ff662ac511a19e7623b406dffee2242 (patch) | |
tree | f37ecedcdc3f4dfebba1e359e25ab5efba46f8af /src/radeon_driver.c | |
parent | 7e2090e3ebf0bd699d66d336353c097d658a86ae (diff) |
Bug #4001: Don't crash when PanelSize is unset. (Alan Coopersmith)
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index d52f898..caa85ce 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 */ |