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:
parent
53fbc9f176
commit
dbc542b9d3
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue