diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-11 09:39:38 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-11 09:39:38 +0200 |
commit | 7a6b3c0f77c69019268f585c51c3dcbcc99014d4 (patch) | |
tree | b1cd820128d1fa329316819b7f83af6be66e3e28 /src | |
parent | f31fd9ce598841c505a0b5ed32bf124f49fea332 (diff) |
radeon: Don't loop indefinitely if no mode matches detected panel size.
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_display.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/radeon_display.c b/src/radeon_display.c index 90fdc545..d501cdc4 100644 --- a/src/radeon_display.c +++ b/src/radeon_display.c @@ -863,8 +863,12 @@ static Bool RADEONGetLVDSInfo (ScrnInfoPtr pScrn) info->Flags = 0; break; } - tmp_mode = tmp_mode->next; } + + tmp_mode = tmp_mode->next; + + if (tmp_mode == pScrn->monitor->Modes) + break; } if ((info->DotClock == 0) && !pRADEONEnt->PortInfo[0]->MonInfo) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, |