This reverts commit 925bb1ce47f429f69aad35876df7ecd8c53deb7e. It causes lots of warnings and problems so for now, let's just revert it.
Unified · Split
| @@ -34,9 +34,7 @@ static int tty_port_default_receive_buf(struct tty_port *port, · 33 unmodified lines | |||
| 34 | if (!disc) | 34 | if (!disc) |
| 35 | return 0; | 35 | return 0; |
| 36 | 36 | ||
| 37 | mutex_lock(&tty->atomic_write_lock); | ||
| 38 | ret = tty_ldisc_receive_buf(disc, p, (char *)f, count); | 37 | ret = tty_ldisc_receive_buf(disc, p, (char *)f, count); |
| 39 | mutex_unlock(&tty->atomic_write_lock); | ||
| 40 | 38 | ||
| 41 | tty_ldisc_deref(disc); | 39 | tty_ldisc_deref(disc); |
| 42 | 40 | ||