diff options
author | Rob <rglowery@exemail.com.au> | 2007-10-24 11:06:53 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-10-24 11:06:53 -0700 |
commit | 021265fbec9fd4ee31bdc9767c0c0453479ea22c (patch) | |
tree | e2b1a360fa868fdde57c162d5da2846ba1f3ece7 /src/i830_tv.c | |
parent | 87345e820d20f1a98216c52e156c2e18c15ffa44 (diff) |
Fix a crash in TV mode handling by initializing the prev field of modes.
Diffstat (limited to 'src/i830_tv.c')
-rw-r--r-- | src/i830_tv.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |