Summary: | xf86: return NULL for xf86CompatOutput if config->compat_output is -1 | ||
---|---|---|---|
Product: | xorg | Reporter: | vdb128 <vdb128> |
Component: | Server/General | Assignee: | Keith Packard <keithp> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | git | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 65212 | ||
Attachments: |
Description
vdb128
2013-05-31 12:45:21 UTC
Created attachment 80091 [details] [review] return NULL for xf86CompatOutput if config->compat_output < 0 Created attachment 80093 [details]
Xorg 2010 log: EDID monitor connected at output 0.
During initial configuration compat_output == 0 so
xf86SetDDCproperties() is called. Search for 'Printing DDC '.
Created attachment 80094 [details]
Xorg 2010 log: EDID monitor connected at output 2.
Since compat_output == 0 during initial configuration
xf86SetDDCproperties() is never called. Search for 'EDID'.
Just FYI, patches mailed to xorg-devel, as described on http://www.x.org/wiki/Development/Documentation/SubmittingPatches get applied to the X server sources with an average of several years less delay than those stuck in bugzilla. (Sorry, we're overloaded and don't have developers to spare going through bugzilla looking for patches.) commit 28159eff6badf6181b255f26d1f444abe81c05b7 Author: Jason Gerecke <killertofu@gmail.com> Date: Thu Apr 30 18:06:14 2015 -0700 xfree86: Return NULL from xf86CompatOutput if no compat_output is defined If no compat_output is defined, we inadvertently (attempt to) return whatever data is at index -1. Instead, return NULL since that's what callers are expecting. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.