[PATCH] xf86/crtc: return 0 in xf86CompatOutput when compat_output is < 0

Keith Packard keithp at keithp.com
Mon Oct 8 10:48:01 PDT 2012


Maarten Lankhorst <maarten.lankhorst at canonical.com> writes:

> Commit 37d956e3ac9513 initializes compat_output to -1, so 
> xf86CompatOutput would do config->output[-1] when not initialized.
>
> This happens in xf86OutputSetEDID for example, before compat_output is
> set.

Seems like compat_output should be set before xf86OutputSetEDID gets
called then; otherwise I don't see how the right thing will happen at
server startup time.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20121008/519b41f2/attachment.pgp>


More information about the xorg-devel mailing list