6583707: Radeon driver: CRT2 gets wrong monitor info
authorHenry Zhao <Henry.Zhao@Sun.COM>
Mon, 30 Jul 2007 15:57:04 -0700
changeset 193 f5d04473459b
parent 192 7ea213419026
child 194 c2b76d8a41f7
6583707: Radeon driver: CRT2 gets wrong monitor info
open-src/driver/xf86-video-ati/6583707.patch
open-src/driver/xf86-video-ati/Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/driver/xf86-video-ati/6583707.patch	Mon Jul 30 15:57:04 2007 -0700
@@ -0,0 +1,11 @@
+--- src/radeon_driver.c.orig	Sat Jul 28 19:48:26 2007
++++ src/radeon_driver.c	Sat Jul 28 22:59:42 2007
+@@ -9874,7 +9874,7 @@
+        info->CRT2pScrn->monitor = xalloc(sizeof(MonRec));
+        if(info->CRT2pScrn->monitor) {
+           DisplayModePtr tempm = NULL, currentm = NULL, newm = NULL;
+-          memcpy(info->CRT2pScrn->monitor, pScrn->monitor, sizeof(MonRec));
++          memset(info->CRT2pScrn->monitor, 0, sizeof(MonRec));
+           info->CRT2pScrn->monitor->DDC = NULL;
+ 	  info->CRT2pScrn->monitor->Modes = NULL;
+ 	  info->CRT2pScrn->monitor->id = "CRT2 Monitor";
--- a/open-src/driver/xf86-video-ati/Makefile	Fri Jul 27 11:12:48 2007 -0700
+++ b/open-src/driver/xf86-video-ati/Makefile	Mon Jul 30 15:57:04 2007 -0700
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.12	07/07/25
+# @(#)Makefile	1.13	07/07/30
 #
 
 # Package name used in tarballs
@@ -49,7 +49,8 @@
 	mapfiles.patch		\
 	6531742.patch		\
 	6535741.patch		\
-	6568883.patch
+	6568883.patch		\
+	6583707.patch
 
 # Man pages to apply Sun footer to & attributes to list
 SUNTOUCHED_MANPAGES=man/*.man