Minor number for pty device nodes computed wrongly

This commit is contained in:
Ben Gras 2005-10-11 17:04:56 +00:00
parent c5b1394133
commit f463c247b6

View file

@ -1526,7 +1526,7 @@ PRIVATE void tty_init()
tp->tty_minor = RS232_MINOR + s-NR_CONS;
} else {
pty_init(tp);
tp->tty_minor = s + TTYPX_MINOR + s-(NR_CONS+RS232_MINOR);
tp->tty_minor = s - (NR_CONS+NR_RS_LINES) + TTYPX_MINOR;
}
}