From 0bd8f0cd7f3823ee17ae8c88fd3e004bfff9982d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Tue, 29 Dec 2009 12:51:27 +0100 Subject: [PATCH] EXA/classic: Fix crash with migration heuristic "smart". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michel Dänzer Acked-by: Maarten Maathuis Signed-off-by: Keith Packard --- exa/exa_migration_classic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exa/exa_migration_classic.c b/exa/exa_migration_classic.c index 95189becc..871679ffc 100644 --- a/exa/exa_migration_classic.c +++ b/exa/exa_migration_classic.c @@ -75,6 +75,9 @@ exaPixmapIsDirty (PixmapPtr pPix) if (pExaPixmap == NULL) EXA_FatalErrorDebugWithRet(("EXA bug: exaPixmapIsDirty was called on a non-exa pixmap.\n"), TRUE); + if (!pExaPixmap->pDamage) + return FALSE; + return REGION_NOTEMPTY (pScreen, DamageRegion(pExaPixmap->pDamage)) || !REGION_EQUAL(pScreen, &pExaPixmap->validSys, &pExaPixmap->validFB); }