Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275785
b: refs/heads/master
c: 3004207
h: refs/heads/master
i:
  275783: 08256b5
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Nov 17, 2011
1 parent 7cfc9b5 commit 02078e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df92d0561de364de53c42abc5d43e04ab6f326a5
refs/heads/master: 300420722e0734a4254f3b634e0f82664495d210
4 changes: 2 additions & 2 deletions trunk/drivers/tty/tty_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,6 @@ static int tty_ldisc_reinit(struct tty_struct *tty, int ldisc)
if (IS_ERR(ld))
return -1;

WARN_ON_ONCE(tty_ldisc_wait_idle(tty, 5 * HZ));

tty_ldisc_close(tty, tty->ldisc);
tty_ldisc_put(tty->ldisc);
tty->ldisc = NULL;
Expand Down Expand Up @@ -848,6 +846,8 @@ void tty_ldisc_hangup(struct tty_struct *tty)
it means auditing a lot of other paths so this is
a FIXME */
if (tty->ldisc) { /* Not yet closed */
WARN_ON_ONCE(tty_ldisc_wait_idle(tty, 5 * HZ));

if (reset == 0) {

if (!tty_ldisc_reinit(tty, tty->termios->c_line))
Expand Down

0 comments on commit 02078e1

Please sign in to comment.