Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3651751f authored by David S. Miller's avatar David S. Miller
Browse files

sunhv: Fix locking in non-paged I/O case.



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

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 93dae5b7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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');