xf86-video-intel: Branch '2.7' - src/i830_video.c

Carl Worth cworth at kemper.freedesktop.org
Fri May 8 13:45:17 PDT 2009


 src/i830_video.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 77153d690a3673fdee7bef8e567816b754c43081
Author: Albert Damen <albrt at gmx.net>
Date:   Sun Apr 5 16:36:35 2009 +0200

    Fix crash with XV with large virtual display
    
    If a virtual display with width > 2048 is used, the first time
    an XV buffer is needed will result in a BadAlloc error message,
    but the next time X would crash.
    
    Signed-off-by: Eric Anholt <eric at anholt.net>
    (cherry picked from commit d7ca870e1ce251d42e3689a8e1e7d080ab1325fb)

diff --git a/src/i830_video.c b/src/i830_video.c
index 4ed3047..a62d7a1 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -2392,6 +2392,7 @@ I830PutImage(ScrnInfoPtr pScrn,
                 return BadAlloc;
             if (!pPriv->textured && drm_intel_bo_pin(pPriv->buf, 4096) != 0) {
                 drm_intel_bo_unreference(pPriv->buf);
+                pPriv->buf = NULL;
                 xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
                            "Failed to pin xv buffer\n");
                 return BadAlloc;


More information about the xorg-commit mailing list