aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2017-06-04 10:23:25 +0200
committerGreg Kroah-Hartman <[email protected]>2017-06-04 10:23:25 +0200
commitfc098af16b9ff6d470d779d8ddcfb2d91869045a (patch)
treeadf148e5c23f1057ba6dc071f296875ae611704d
parent5ed02dbb497422bf225783f46e6eadd237d23d6b (diff)
Revert "tty: fix port buffer locking"
This reverts commit 925bb1ce47f429f69aad35876df7ecd8c53deb7e. It causes lots of warnings and problems so for now, let's just revert it. Reported-by: <[email protected]> Reported-by: Russell King <[email protected]> Reported-by: Sergey Senozhatsky <[email protected]> Reported-by: Geert Uytterhoeven <[email protected]> Reported-by: Jiri Slaby <[email protected]> Reported-by: Andrey Konovalov <[email protected]> Acked-by: Vegard Nossum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/tty/tty_port.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c
index 4fb3165384c4..6b137194069f 100644
--- a/drivers/tty/tty_port.c
+++ b/drivers/tty/tty_port.c
@@ -34,9 +34,7 @@ static int tty_port_default_receive_buf(struct tty_port *port,
if (!disc)
return 0;
- mutex_lock(&tty->atomic_write_lock);
ret = tty_ldisc_receive_buf(disc, p, (char *)f, count);
- mutex_unlock(&tty->atomic_write_lock);
tty_ldisc_deref(disc);