7154498 Xorg ast driver segfaulting on T3 and T4 systems
authorNiveditha Rau <Niveditha.Rau@Oracle.COM>
Thu, 29 Mar 2012 13:35:26 -0700
changeset 1264 a3323e4f263f
parent 1263 ea2fb75f5cbd
child 1265 0b5cc5c013e4
7154498 Xorg ast driver segfaulting on T3 and T4 systems
open-src/driver/xf86-video-ast/sun-src/src/ast_sparc_driver.c
--- a/open-src/driver/xf86-video-ast/sun-src/src/ast_sparc_driver.c	Mon Mar 26 13:57:48 2012 -0700
+++ b/open-src/driver/xf86-video-ast/sun-src/src/ast_sparc_driver.c	Thu Mar 29 13:35:26 2012 -0700
@@ -66,7 +66,7 @@
 #define AST_REG_SIZE       		(256*1024)
 #define AST_REG_SIZE_LOG2  		18
 
-#define AST_DEFAULT_DEVICE_PATH 	"/dev/fb"
+#define AST_DEFAULT_DEVICE_PATH 	"/dev/fb0"
 
 #define PCI_MAP_MEMORY                  0x00000000
 #define PCI_MAP_IO                      0x00000001
@@ -172,7 +172,11 @@
                 info->deviceName = dev;
                 info->fd = fd;
             }
-        }
+        } else  {
+	    xf86DrvMsg(pScrn->scrnIndex, X_ERROR, 
+				"Cannot open device %s\n", dev);
+	    return NULL;
+	}
     }
     return pScrn;
 }