[PATCH] Avoid segfaults in XF86VidMode GammaRamp functions if randr_crtc is NULL

Keith Packard keithp at keithp.com
Tue Feb 23 09:25:12 PST 2010

On Tue, 23 Feb 2010 15:02:40 +0100, Brice Goglin <Brice.Goglin at ens-lyon.org> wrote:

> See some debugging in
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554450#31
> Does this ring any bell ?

yeah, this makes sense -- the compat_output has recently been redefined
to be the same as the 'primary' output, and that output may well be
turned off, in which case you'd get a crash looking for the crtc
attached to it.

Fixing this will require reviewing all uses of compat_output and
ensuring that they check for a NULL crtc.

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

More information about the xorg-devel mailing list