From 01bd5eb713500d3e3d4351865d460c8d1e476454 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Mon, 25 Jun 2007 16:16:18 -0400 Subject: RADEON: fix possible segfault on mobility chips with MM tables reported by Stefan Buehler --- src/radeon_video.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/radeon_video.c b/src/radeon_video.c index 95db9ef4..dbf66dac 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -1188,17 +1188,10 @@ static void RADEONSetupTheatre(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) /* Go and find Rage Theatre, if it exists */ - switch(info->Chipset){ - case PCI_CHIP_RADEON_LY: - case PCI_CHIP_RADEON_LZ: - xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Detected Radeon Mobility M6, not scanning for Rage Theatre\n"); - break; - case PCI_CHIP_RADEON_LW: - xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Detected Radeon Mobility M7, not scanning for Rage Theatre\n"); - break; - default: - pPriv->theatre=xf86_DetectTheatre(pPriv->VIP); - } + if (info->IsMobility) + xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Detected Radeon Mobility, not scanning for Rage Theatre\n"); + else + pPriv->theatre=xf86_DetectTheatre(pPriv->VIP); if(pPriv->theatre==NULL)return; -- cgit v1.2.3