mwl8k: no need to hold ->tx_lock while setting the hardware interrupt mask
[pandora-kernel.git] / drivers / char / n_tty.c
index ff47907..973be2f 100644 (file)
@@ -1583,6 +1583,7 @@ static int n_tty_open(struct tty_struct *tty)
 
 static inline int input_available_p(struct tty_struct *tty, int amt)
 {
+       tty_flush_to_ldisc(tty);
        if (tty->icanon) {
                if (tty->canon_data)
                        return 1;