diff options
Diffstat (limited to 'drivers/tty/pty.c')
-rw-r--r-- | drivers/tty/pty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c index bcec4c71a408..7a1a53819e22 100644 --- a/drivers/tty/pty.c +++ b/drivers/tty/pty.c | |||
@@ -47,7 +47,9 @@ static void pty_close(struct tty_struct *tty, struct file *filp) | |||
47 | set_bit(TTY_IO_ERROR, &tty->flags); | 47 | set_bit(TTY_IO_ERROR, &tty->flags); |
48 | wake_up_interruptible(&tty->read_wait); | 48 | wake_up_interruptible(&tty->read_wait); |
49 | wake_up_interruptible(&tty->write_wait); | 49 | wake_up_interruptible(&tty->write_wait); |
50 | spin_lock_irq(&tty->ctrl_lock); | ||
50 | tty->packet = 0; | 51 | tty->packet = 0; |
52 | spin_unlock_irq(&tty->ctrl_lock); | ||
51 | /* Review - krefs on tty_link ?? */ | 53 | /* Review - krefs on tty_link ?? */ |
52 | if (!tty->link) | 54 | if (!tty->link) |
53 | return; | 55 | return; |