2ba9dec
From 4d84cf438e7f1bebf0053035ef0292e9fed257d1 Mon Sep 17 00:00:00 2001
2ba9dec
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <mdaenzer@redhat.com>
2ba9dec
Date: Fri, 29 Nov 2019 16:37:32 +0100
2ba9dec
Subject: [PATCH 1/2] Handle NULL fb_ptr in pixmap_get_fb
2ba9dec
MIME-Version: 1.0
2ba9dec
Content-Type: text/plain; charset=UTF-8
2ba9dec
Content-Transfer-Encoding: 8bit
2ba9dec
2ba9dec
This can happen when HW acceleration is disabled.
2ba9dec
2ba9dec
Fixes https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/188
2ba9dec
2ba9dec
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
2ba9dec
---
2ba9dec
 src/radeon.h | 2 +-
2ba9dec
 1 file changed, 1 insertion(+), 1 deletion(-)
2ba9dec
2ba9dec
diff --git a/src/radeon.h b/src/radeon.h
2ba9dec
index 2c913466..8e964805 100644
2ba9dec
--- a/src/radeon.h
2ba9dec
+++ b/src/radeon.h
2ba9dec
@@ -896,7 +896,7 @@ radeon_pixmap_get_fb(PixmapPtr pix)
2ba9dec
 				   handle);
2ba9dec
     }
2ba9dec
 
2ba9dec
-    return *fb_ptr;
2ba9dec
+    return fb_ptr ? *fb_ptr : NULL;
2ba9dec
 }
2ba9dec
 
2ba9dec
 
2ba9dec
-- 
2ba9dec
2.26.2
2ba9dec