dri: Protect against using dri with an non-gem pixmap

Reported-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2010-12-31 23:29:05 +00:00
parent 53fbc9f176
commit dbc542b9d3
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ static uint32_t pixmap_flink(PixmapPtr pixmap)
uint32_t name;
dri_bo *bo;
if (priv->bo == NULL)
if (priv == NULL || priv->bo == NULL)
return 0;
if (dri_bo_flink(bo, &name) != 0)