|
@@ -47,7 +47,9 @@ static void pty_close(struct tty_struct *tty, struct file *filp)
|
|
|
set_bit(TTY_IO_ERROR, &tty->flags);
|
|
|
wake_up_interruptible(&tty->read_wait);
|
|
|
wake_up_interruptible(&tty->write_wait);
|
|
|
+ spin_lock_irq(&tty->ctrl_lock);
|
|
|
tty->packet = 0;
|
|
|
+ spin_unlock_irq(&tty->ctrl_lock);
|
|
|
/* Review - krefs on tty_link ?? */
|
|
|
if (!tty->link)
|
|
|
return;
|