From 6291baaed261e36a63dc001307427fe00ba82259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 19 Mar 2015 00:12:06 +0900 Subject: EXA: Return NULL from radeon_get_pixmap_bo if there is no driver private This mirrors what the glamor part of the function does. Fixes a crash running glxgears_pixmap with DRI3 enabled, reported by "marvin24" on IRC. --- src/radeon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/radeon.h b/src/radeon.h index 6084cfed..375a7269 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -678,7 +678,7 @@ static inline struct radeon_bo *radeon_get_pixmap_bo(PixmapPtr pPix) { struct radeon_exa_pixmap_priv *driver_priv; driver_priv = exaGetPixmapDriverPrivate(pPix); - return driver_priv->bo; + return driver_priv ? driver_priv->bo : NULL; } return NULL; -- cgit v1.2.3