1445N/A--- a/src/ast_driver.c Wed Nov 12 12:50:42 2014
1445N/A+++ b/src/ast_driver.c Wed Nov 12 12:51:59 2014
1342N/A@@ -1,5 +1,6 @@
1342N/A /*
1342N/A * Copyright (c) 2005 ASPEED Technology Inc.
1445N/A+ * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved
1342N/A *
1342N/A * Permission to use, copy, modify, distribute, and sell this software and its
1342N/A * documentation for any purpose is hereby granted without fee, provided that
1445N/A@@ -1580,6 +1581,11 @@
1445N/A }
1351N/A else
1445N/A Flags = ASTGetVGAEDID(pScrn, DDC_data);
1445N/A+ /*
1445N/A+ * Buffer is of size 128, can't read extension blocks even the monitor
1445N/A+ * provides. 126 is NO_EDID defined in edid.h
1445N/A+ */
1445N/A+ DDC_data[126] = 0;
1445N/A
1445N/A if (Flags)
1445N/A {
1445N/A@@ -1633,6 +1639,12 @@
1445N/A else
1445N/A Flags = ASTGetVGAEDID(pScrn, DDC_data);
1351N/A
1351N/A+ /*
1351N/A+ * Buffer is of size 128, can't read extension blocks even the monitor
1351N/A+ * provides. 126 is NO_EDID defined in edid.h
1351N/A+ */
1351N/A+ DDC_data[126] = 0;
1342N/A+
1445N/A if (Flags)
1351N/A {
1351N/A MonInfo = MonInfo1 = xf86InterpretEDID(pScrn->scrnIndex, DDC_data);