From 537fa55ed2449e91f3dd1e04abc720c6818d7227 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 2 Jan 2011 09:06:28 +0000 Subject: dri: Fix the use of the uninitialised bo for flink Reported-by: Jeff Chua Signed-off-by: Chris Wilson --- src/intel_dri.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/intel_dri.c') diff --git a/src/intel_dri.c b/src/intel_dri.c index f404ea40..b80a7556 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; -- cgit v1.2.3