Fix a crash in TV mode handling by initializing the prev field of modes.

This commit is contained in:
Rob 2007-10-24 11:06:53 -07:00 committed by Eric Anholt
parent 87345e820d
commit 021265fbec
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}