|
@@ -1245,8 +1245,11 @@ static void uart_set_ldisc(struct tty_struct *tty)
|
|
struct uart_state *state = tty->driver_data;
|
|
struct uart_state *state = tty->driver_data;
|
|
struct uart_port *uport = state->uart_port;
|
|
struct uart_port *uport = state->uart_port;
|
|
|
|
|
|
- if (uport->ops->set_ldisc)
|
|
|
|
|
|
+ if (uport->ops->set_ldisc) {
|
|
|
|
+ mutex_lock(&state->port.mutex);
|
|
uport->ops->set_ldisc(uport, tty->termios.c_line);
|
|
uport->ops->set_ldisc(uport, tty->termios.c_line);
|
|
|
|
+ mutex_unlock(&state->port.mutex);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
static void uart_set_termios(struct tty_struct *tty,
|
|
static void uart_set_termios(struct tty_struct *tty,
|