diff --git a/[refs] b/[refs] index 990839feff12..2a60bdae02f6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ad9c7ed0685406fe3cd7f0749b82bf433a39dd9c +refs/heads/master: 4457d9845927b3c62b6e833be243d21d6ca7df47 diff --git a/trunk/drivers/char/nozomi.c b/trunk/drivers/char/nozomi.c index 18af923093c3..817169cbb245 100644 --- a/trunk/drivers/char/nozomi.c +++ b/trunk/drivers/char/nozomi.c @@ -1743,8 +1743,7 @@ static int ntty_write_room(struct tty_struct *tty) if (dc) { mutex_lock(&port->tty_sem); if (port->port.count) - room = port->fifo_ul.size - - kfifo_len(&port->fifo_ul); + room = kfifo_avail(&port->fifo_ul); mutex_unlock(&port->tty_sem); } return room;