From 021265fbec9fd4ee31bdc9767c0c0453479ea22c Mon Sep 17 00:00:00 2001 From: Rob Date: Wed, 24 Oct 2007 11:06:53 -0700 Subject: Fix a crash in TV mode handling by initializing the prev field of modes. --- src/i830_tv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/i830_tv.c') diff --git a/src/i830_tv.c b/src/i830_tv.c index 940250e5..678d5103 100644 --- a/src/i830_tv.c +++ b/src/i830_tv.c @@ -1451,6 +1451,9 @@ i830_tv_get_modes(xf86OutputPtr output) mode_ptr->type = M_T_DRIVER; mode_ptr->next = ret; + mode_ptr->prev = NULL; + if (ret != NULL) + reg->prev = mode_ptr; ret = mode_ptr; } -- cgit v1.2.3