Blame SOURCES/0001-handle-NullCursor-to-avoid-crash.patch

4724a4
From 54564059c2d4c841a80c65f6a730e36412ee451e Mon Sep 17 00:00:00 2001
4724a4
From: rpm-build <rpm-build>
4724a4
Date: Fri, 9 Jun 2017 13:35:47 +1000
4724a4
Subject: [PATCH] handle NullCursor to avoid crash
4724a4
4724a4
---
4724a4
 hw/xfree86/drivers/modesetting/drmmode_display.c | 2 ++
4724a4
 1 file changed, 2 insertions(+)
4724a4
4724a4
diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c
4724a4
index 6e755e9..431f63d 100644
4724a4
--- a/hw/xfree86/drivers/modesetting/drmmode_display.c
4724a4
+++ b/hw/xfree86/drivers/modesetting/drmmode_display.c
4724a4
@@ -760,6 +760,8 @@ drmmode_set_cursor(xf86CrtcPtr crtc)
4724a4
 
4724a4
     if (!drmmode_crtc->set_cursor2_failed) {
4724a4
         CursorPtr cursor = xf86CurrentCursor(crtc->scrn->pScreen);
4724a4
+        if (cursor == NullCursor)
4724a4
+            return TRUE;
4724a4
 
4724a4
         ret =
4724a4
             drmModeSetCursor2(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
4724a4
-- 
4724a4
2.9.4
4724a4