From 5912e7663daaf79c1c20ff2ad929ff00f779e468 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Thu, 29 Apr 2010 07:15:21 +0300 Subject: [PATCH] Fix segfault with Option NoAccel Fixes bug #27725 Breakage from commit 38e86827 --- src/lx_memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/lx_memory.c b/src/lx_memory.c index 3f853d4..b4813e1 100644 --- a/src/lx_memory.c +++ b/src/lx_memory.c @@ -287,7 +287,7 @@ LXInitOffscreen(ScrnInfoPtr pScrni) xf86DrvMsg(pScrni->scrnIndex, X_INFO, " Cursor: 0x%x bytes\n", LX_CURSOR_HW_WIDTH * 4 * LX_CURSOR_HW_HEIGHT); - if (pGeode->pExa->offScreenBase) + if (pGeode->pExa && pGeode->pExa->offScreenBase) xf86DrvMsg(pScrni->scrnIndex, X_INFO, " EXA: 0x%x bytes\n", (unsigned int)(pGeode->pExa->memorySize - pGeode->pExa->offScreenBase)); -- 1.7.0.4