|
@@ -1815,6 +1815,7 @@ static ssize_t n_tty_read(struct tty_struct *tty, struct file *file,
|
|
|
/* FIXME: does n_tty_set_room need locking ? */
|
|
/* FIXME: does n_tty_set_room need locking ? */
|
|
|
n_tty_set_room(tty);
|
|
n_tty_set_room(tty);
|
|
|
timeout = schedule_timeout(timeout);
|
|
timeout = schedule_timeout(timeout);
|
|
|
|
|
+ BUG_ON(!tty->read_buf);
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
__set_current_state(TASK_RUNNING);
|
|
__set_current_state(TASK_RUNNING);
|