[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#507916: Patch for xf86_reload_cursors crash



Hi,

I ran into a similar crash in xf86_reload_cursors and this patch
worked for me.

-jim

Index: xorg-server-1.6.5/hw/xfree86/modes/xf86Cursors.c
===================================================================
--- xorg-server-1.6.5.orig/hw/xfree86/modes/xf86Cursors.c	2009-11-29 15:16:23.000000000 -0500
+++ xorg-server-1.6.5/hw/xfree86/modes/xf86Cursors.c	2009-11-29 15:16:34.000000000 -0500
@@ -612,7 +612,7 @@
     cursor_screen_priv = dixLookupPrivate(&screen->devPrivates,
 					  xf86CursorScreenKey);
     /* return if HW cursor is inactive, to avoid displaying two cursors */
-    if (!cursor_screen_priv->isUp)
+    if (!cursor_screen || !cursor_screen_priv->isUp)
 	return;
 
     scrn = xf86Screens[screen->myNum];



Reply to: