]> git.hungrycats.org Git - linux/commitdiff
[SERIAL] Fix deadlock in __uart_start introduced in previous cset
authorRussell King <rmk@flint.arm.linux.org.uk>
Tue, 23 Jul 2002 09:15:28 +0000 (10:15 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Tue, 23 Jul 2002 09:15:28 +0000 (10:15 +0100)
Thanks to Zwane Mwaikambo for finding this.

drivers/serial/core.c

index 724ad652e08f74c3f13b5e4b089ea4215b9047c8..026b54b191d6a94effd4f0a7ad182f1b40a3a22c 100644 (file)
@@ -104,13 +104,10 @@ static void __uart_start(struct tty_struct *tty)
 {
        struct uart_info *info = tty->driver_data;
        struct uart_port *port = info->port;
-       unsigned long flags;
 
-       spin_lock_irqsave(&port->lock, flags);
        if (!uart_circ_empty(&info->xmit) && info->xmit.buf &&
            !tty->stopped && !tty->hw_stopped)
                port->ops->start_tx(port, 1);
-       spin_unlock_irqrestore(&port->flags, flags);
 }
 
 static void uart_start(struct tty_struct *tty)