summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-06-11 09:39:38 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-06-11 09:39:38 +0200
commit7a6b3c0f77c69019268f585c51c3dcbcc99014d4 (patch)
treeb1cd820128d1fa329316819b7f83af6be66e3e28 /src
parentf31fd9ce598841c505a0b5ed32bf124f49fea332 (diff)
radeon: Don't loop indefinitely if no mode matches detected panel size.
Diffstat (limited to 'src')
-rw-r--r--src/radeon_display.c6
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,