diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-02 09:06:28 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-02 09:06:28 +0000 |
commit | 537fa55ed2449e91f3dd1e04abc720c6818d7227 (patch) | |
tree | b2de8b7af49a8407abc703c74c337fc19f4c4b6c /src/intel_dri.c | |
parent | dbc542b9d38ff9781efcdf1d5308e97f04499138 (diff) |
dri: Fix the use of the uninitialised bo for flink
Reported-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_dri.c')
-rw-r--r-- | src/intel_dri.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |