From 59c2ccba3bab442c02ddb2ebaabe287ee6b6db53 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 18 Jun 2001 09:22:30 +0000 Subject: Don't remove the SI_CHEAPCLONE for unsupported minors --- sys/kern/tty_pty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/tty_pty.c') diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 37a3126..8672077 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -143,12 +143,13 @@ ptyinit(dev_t devc) struct pt_ioctl *pt; int n; - devc->si_flags &= ~SI_CHEAPCLONE; n = minor(devc); /* For now we only map the lower 8 bits of the minor */ if (n & ~0xff) return (NODEV); + devc->si_flags &= ~SI_CHEAPCLONE; + pt = malloc(sizeof(*pt), M_PTY, M_WAITOK | M_ZERO); pt->devs = devs = make_dev(&pts_cdevsw, n, UID_ROOT, GID_WHEEL, 0666, "tty%c%r", names[n / 32], n % 32); -- cgit v1.1