Skip to content

Commit

Permalink
sunhv: Fix locking in non-paged I/O case.
Browse files Browse the repository at this point in the history
This causes the lock to be taken twice, thus resulting in
a deadlock.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 21, 2008
1 parent 93dae5b commit 3651751
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/serial/sunhv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 3651751

Please sign in to comment.