Fix a crash in TV mode handling by initializing the prev field of modes.
This commit is contained in:
parent
87345e820d
commit
021265fbec
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue