From f10446303ecc50c2e42e298181de0668c36d13a6 Mon Sep 17 00:00:00 2001 From: Albert Damen Date: Sun, 5 Apr 2009 16:36:35 +0200 Subject: [PATCH] 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. diff --git a/src/i830_video.c b/src/i830_video.c index 3f3aaac..4da2722 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -2391,6 +2391,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;