16027951.patch revision 1342
1342N/A--- src/ast_driver.c Tue Mar 19 16:55:11 2013
1342N/A+++ src/ast_driver.c Mon Apr 1 16:10:19 2013
1342N/A@@ -1,5 +1,6 @@
1342N/A /*
1342N/A * Copyright (c) 2005 ASPEED Technology Inc.
1342N/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
1342N/A@@ -1398,7 +1399,13 @@
1342N/A Flags = GetVGA2EDID(pScrn, DDC_data);
1342N/A else
1342N/A Flags = GetVGAEDID(pScrn, DDC_data);
1342N/A-
1342N/A+
1342N/A+ /*
1342N/A+ * Buffer is of size 128, can't read extension blocks even the monitor
1342N/A+ * provides. 126 is NO_EDID defined in edid.h
1342N/A+ */
1342N/A+ DDC_data[126] = 0;
1342N/A+
1342N/A if (Flags)
1342N/A {
1342N/A ConfiguredMonitor = xf86InterpretEDID(pScrn->scrnIndex, DDC_data);
1342N/A@@ -1441,7 +1448,13 @@
1342N/A Flags = GetVGA2EDID(pScrn, DDC_data);
1342N/A else
1342N/A Flags = GetVGAEDID(pScrn, DDC_data);
1342N/A-
1342N/A+
1342N/A+ /*
1342N/A+ * Buffer is of size 128, can't read extension blocks even the monitor
1342N/A+ * provides. 126 is NO_EDID defined in edid.h
1342N/A+ */
1342N/A+ DDC_data[126] = 0;
1342N/A+
1342N/A if (Flags)
1342N/A {
1342N/A MonInfo = MonInfo1 = xf86InterpretEDID(pScrn->scrnIndex, DDC_data);