diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index e218ae29b4823864e67aee5b357d5697a59dd88e..5e28d39b9e8196e306fabc6df4eb1ce58e6c9f70 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c @@ -1806,7 +1806,7 @@ static int mxser_ioctl(struct tty_struct *tty, struct file *file, lock_kernel(); len = mxser_chars_in_buffer(tty); - lsr = inb(info->ioaddr + UART_LSR) & UART_LSR_TEMT; + lsr = inb(info->ioaddr + UART_LSR) & UART_LSR_THRE; len += (lsr ? 0 : 1); unlock_kernel();