xf86-video-modesetting: src/exa.c

Alan Hourihane alanh at kemper.freedesktop.org
Thu Jun 26 14:49:42 PDT 2008


 src/exa.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 88ec23b85e32bacd6cbd9a9422a35bdc5bd47331
Author: Alan Hourihane <alanh at tungstengraphics.com>
Date:   Thu Jun 26 22:49:33 2008 +0100

    NULL checks

diff --git a/src/exa.c b/src/exa.c
index cab6870..a804feb 100644
--- a/src/exa.c
+++ b/src/exa.c
@@ -463,7 +463,7 @@ ExaPrepareSolid(PixmapPtr pPixmap, int alu, Pixel planeMask, Pixel fg)
     if (!EXA_PM_IS_SOLID(&pPixmap->drawable, planeMask))
 	return FALSE;
 
-    if (!priv->tex)
+    if (!priv || !priv->tex)
 	return FALSE;
 
     if (alu != GXcopy)
@@ -515,6 +515,9 @@ ExaPrepareCopy(PixmapPtr pSrcPixmap, PixmapPtr pDstPixmap, int xdir,
     if (!EXA_PM_IS_SOLID(&pSrcPixmap->drawable, planeMask))
 	return FALSE;
 
+    if (!priv || !src_priv)
+	return FALSE;
+
     if (!priv->tex || !src_priv->tex)
 	return FALSE;
 


More information about the xorg-commit mailing list