X-Git-Url: http://git.rot13.org/?p=powerpc.git;a=blobdiff_plain;f=drivers%2Fchar%2Ftty_io.c;h=fc662e4ce58aebd0f4995c2b880b417549b294fe;hp=f6ac1d316ea4a71659dd214ca9c5e9e1779eb7ef;hb=9a9136e270af14da506f66bcafcc506b86a86498;hpb=7bb2acb76e8168ca5d0bde5a5a56585a11b3525a diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index f6ac1d316e..fc662e4ce5 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -933,13 +933,6 @@ restart: if (ld == NULL) return -EINVAL; - /* - * No more input please, we are switching. The new ldisc - * will update this value in the ldisc open function - */ - - tty->receive_room = 0; - /* * Problem: What do we do if this blocks ? */ @@ -951,6 +944,13 @@ restart: return 0; } + /* + * No more input please, we are switching. The new ldisc + * will update this value in the ldisc open function + */ + + tty->receive_room = 0; + o_ldisc = tty->ldisc; o_tty = tty->link;