diff options
Diffstat (limited to 'drivers/char/pty.c')
-rw-r--r-- | drivers/char/pty.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/pty.c b/drivers/char/pty.c index b33d6688e910..53761cefa915 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c | |||
@@ -120,8 +120,10 @@ static int pty_write(struct tty_struct *tty, const unsigned char *buf, int c) | |||
120 | /* Stuff the data into the input queue of the other end */ | 120 | /* Stuff the data into the input queue of the other end */ |
121 | c = tty_insert_flip_string(to, buf, c); | 121 | c = tty_insert_flip_string(to, buf, c); |
122 | /* And shovel */ | 122 | /* And shovel */ |
123 | tty_flip_buffer_push(to); | 123 | if (c) { |
124 | tty_wakeup(tty); | 124 | tty_flip_buffer_push(to); |
125 | tty_wakeup(tty); | ||
126 | } | ||
125 | } | 127 | } |
126 | return c; | 128 | return c; |
127 | } | 129 | } |