summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-03-19 00:12:06 +0900
committerMichel Dänzer <michel@daenzer.net>2015-03-19 00:12:06 +0900
commit6291baaed261e36a63dc001307427fe00ba82259 (patch)
tree8e4bf968405e40f4be090649c676117ece5d9d90 /src
parentf68d9b5ba0c91a725b5eec9386c61bea8824c299 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/radeon.h2
1 files changed, 1 insertions, 1 deletions
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;