Patch from Chris Johns <cjohns@cybertec.com.au> to make sure the

ttyHead back link is set.
This commit is contained in:
Joel Sherrill
2000-06-29 16:05:30 +00:00
parent 14b4125f3c
commit 5aac7bc83e

View File

@@ -188,11 +188,12 @@ rtems_termios_open (
rtems_semaphore_release (rtems_termios_ttyMutex);
return RTEMS_NO_MEMORY;
}
if (rtems_termios_ttyHead)
rtems_termios_ttyHead->back = tty;
tty->forw = rtems_termios_ttyHead;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
tty->minor = minor;
tty->major = major;