Blame SOURCES/0001-Handle-NULL-fb_ptr-in-pixmap_get_fb.patch

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