[PATCH 1/3] EXA/classic: Fix crash with migration heuristic "smart".

Maarten Maathuis madman2003 at gmail.com
Tue Dec 29 03:46:28 PST 2009


Acked-by: Maarten Maathuis <madman2003 at gmail.com>

2009/12/28 Michel Dänzer <michel at daenzer.net>:
> From: Michel Dänzer <daenzer at vmware.com>
>
> Signed-off-by: Michel Dänzer <daenzer at vmware.com>
> ---
>  exa/exa_migration_classic.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/exa/exa_migration_classic.c b/exa/exa_migration_classic.c
> index 95189be..871679f 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);
>  }
> --
> 1.6.5.7
>
> _______________________________________________
> xorg-devel mailing list
> xorg-devel at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-devel
>


More information about the xorg-devel mailing list