diff options
-rw-r--r-- | drivers/tty/tty_port.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c index 0c880f17d27e..88dac3b79369 100644 --- a/drivers/tty/tty_port.c +++ b/drivers/tty/tty_port.c | |||
@@ -33,7 +33,9 @@ static int tty_port_default_receive_buf(struct tty_port *port, | |||
33 | if (!disc) | 33 | if (!disc) |
34 | return 0; | 34 | return 0; |
35 | 35 | ||
36 | mutex_lock(&tty->atomic_write_lock); | ||
36 | ret = tty_ldisc_receive_buf(disc, p, (char *)f, count); | 37 | ret = tty_ldisc_receive_buf(disc, p, (char *)f, count); |
38 | mutex_unlock(&tty->atomic_write_lock); | ||
37 | 39 | ||
38 | tty_ldisc_deref(disc); | 40 | tty_ldisc_deref(disc); |
39 | 41 | ||