xf86-video-intel: uxa/uxa-render.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Nov 9 01:30:26 PST 2010


 uxa/uxa-render.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 81d355a8dcdfe3d0924bb843bcc0e6546f695391
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Nov 9 09:28:54 2010 +0000

    uxa: Fix crash after allocation failure
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31487
    Reported-by: Thomas Fjellstrom <tfjellstrom at shaw.ca>
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index fd8eb93..a6b539d 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -806,6 +806,8 @@ uxa_acquire_drawable(ScreenPtr pScreen,
 		pDst = uxa_render_picture(pScreen, pSrc,
 					  pSrc->format | (BitsPerPixel(pSrc->pDrawable->depth) << 24),
 					  x, y, width, height);
+		if (!pDst)
+			return 0;
 
 		goto done;
 	} else {


More information about the xorg-commit mailing list