Commit fc098af1 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Revert "tty: fix port buffer locking"

This reverts commit 925bb1ce.

It causes lots of warnings and problems so for now, let's just revert
it.

Reported-by: <valdis.kletnieks@vt.edu>
Reported-by: default avatarRussell King <linux@armlinux.org.uk>
Reported-by: default avatarSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reported-by: default avatarJiri Slaby <jslaby@suse.cz>
Reported-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Acked-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5ed02dbb
...@@ -34,9 +34,7 @@ static int tty_port_default_receive_buf(struct tty_port *port, ...@@ -34,9 +34,7 @@ static int tty_port_default_receive_buf(struct tty_port *port,
if (!disc) if (!disc)
return 0; return 0;
mutex_lock(&tty->atomic_write_lock);
ret = tty_ldisc_receive_buf(disc, p, (char *)f, count); ret = tty_ldisc_receive_buf(disc, p, (char *)f, count);
mutex_unlock(&tty->atomic_write_lock);
tty_ldisc_deref(disc); tty_ldisc_deref(disc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment