From c28075e1d70c98b39fc9829a6a01da171a9b9426 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 19 Dec 2006 21:53:10 -0800 Subject: TV output I830OutputPrivate had wrong type (crashed in SetMode). TV output private type field was set to I830_OUTPUT_SDVO instead of I830_OUTPUT_TVOUT. When DGA mode setting occurred, the sdvo output debug code would be invoked and attempt to dereference sdvo-specific bits of the private structure leading to a segfault. --- src/i830_tv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/i830_tv.c') diff --git a/src/i830_tv.c b/src/i830_tv.c index af9826b0..68527934 100644 --- a/src/i830_tv.c +++ b/src/i830_tv.c @@ -774,7 +774,7 @@ i830_tv_init(ScrnInfoPtr pScrn) return; } dev_priv = (struct i830_tv_priv *) (intel_output + 1); - intel_output->type = I830_OUTPUT_SDVO; + intel_output->type = I830_OUTPUT_TVOUT; intel_output->dev_priv = dev_priv; dev_priv->type = TV_TYPE_UNKNOWN; -- cgit v1.2.3