From 7a6b3c0f77c69019268f585c51c3dcbcc99014d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 11 Jun 2007 09:39:38 +0200 Subject: radeon: Don't loop indefinitely if no mode matches detected panel size. --- src/radeon_display.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3