Skip to content

Commit fc098af

Browse files
committed
Revert "tty: fix port buffer locking"
This reverts commit 925bb1c. It causes lots of warnings and problems so for now, let's just revert it. Reported-by: <valdis.kletnieks@vt.edu> Reported-by: Russell King <linux@armlinux.org.uk> Reported-by: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Reported-by: Jiri Slaby <jslaby@suse.cz> Reported-by: Andrey Konovalov <andreyknvl@google.com> Acked-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5ed02db commit fc098af

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/tty/tty_port.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ static int tty_port_default_receive_buf(struct tty_port *port,
3434
if (!disc)
3535
return 0;
3636

37-
mutex_lock(&tty->atomic_write_lock);
3837
ret = tty_ldisc_receive_buf(disc, p, (char *)f, count);
39-
mutex_unlock(&tty->atomic_write_lock);
4038

4139
tty_ldisc_deref(disc);
4240

0 commit comments

Comments
 (0)