patch for Bug 103722

John Lumby johnlumby at hotmail.com
Mon Nov 13 17:20:29 UTC 2017


--- xserver/hw/xfree86/modes/xf86EdidModes.c.orig	2017-09-24 18:29:54.582068856 -0400
+++ xserver/hw/xfree86/modes/xf86EdidModes.c	2017-11-13 12:06:11.843310650 -0500
@@ -1203,7 +1203,10 @@ xf86EdidMonitorSet(int scrnIndex, MonPtr
             Monitor->Modes = Modes;
         }
 
-        xf86PruneDuplicateModes(Monitor->Modes);
+        /* xf86PruneDuplicateModes may delete any item in the list including the first,
+         * but always returns pointer to new start of list
+         */
+        Monitor->Modes = xf86PruneDuplicateModes(Monitor->Modes);
 
         /* Update pointer to last mode */
         for (Mode = Monitor->Modes; Mode && Mode->next; Mode = Mode->next) {}


More information about the xorg-devel mailing list