diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index b2d18189d3d972fddee35e6a088831544d9e6255..09475695effd472dd027922b5642d189a23921ec 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -3194,6 +3194,7 @@ void serial8250_init_port(struct uart_8250_port *up) { struct uart_port *port = &up->port; + spin_lock_init(&port->lock); port->ops = &serial8250_pops; port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE);