xf86-video-intel: src/intel_dri.c

Chris Wilson ickle at kemper.freedesktop.org
Sun Jan 2 01:07:26 PST 2011


 src/intel_dri.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 537fa55ed2449e91f3dd1e04abc720c6818d7227
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sun Jan 2 09:06:28 2011 +0000

    dri: Fix the use of the uninitialised bo for flink
    
    Reported-by: Jeff Chua <jeff.chua.linux at gmail.com>
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/intel_dri.c b/src/intel_dri.c
index f404ea4..b80a755 100644
--- a/src/intel_dri.c
+++ b/src/intel_dri.c
@@ -77,12 +77,11 @@ static uint32_t pixmap_flink(PixmapPtr pixmap)
 {
 	struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
 	uint32_t name;
-	dri_bo *bo;
 
 	if (priv == NULL || priv->bo == NULL)
 		return 0;
 
-	if (dri_bo_flink(bo, &name) != 0)
+	if (dri_bo_flink(priv->bo, &name) != 0)
 		return 0;
 
 	priv->pinned = 1;


More information about the xorg-commit mailing list