]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sunhv: Fix locking in non-paged I/O case.
authorDavid S. Miller <davem@davemloft.net>
Mon, 9 Jun 2008 20:49:22 +0000 (13:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 16 Jun 2008 20:19:52 +0000 (13:19 -0700)
[ upstream commit: 3651751fff44ede58f65cbb1e39242139ead251b ]

This causes the lock to be taken twice, thus resulting in
a deadlock.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/serial/sunhv.c

index 145c0281495d81e1c7c214ed5f61847da0555d0d..2847336742d77e4ef1ab7cf66980cb7f50393154 100644 (file)
@@ -499,7 +499,6 @@ static void sunhv_console_write_bychar(struct console *con, const char *s, unsig
        } else
                spin_lock(&port->lock);
 
-       spin_lock_irqsave(&port->lock, flags);
        for (i = 0; i < n; i++) {
                if (*s == '\n')
                        sunhv_console_putchar(port, '\r');