ChangeSet 1.2231.1.185, 2005/03/28 20:07:50-08:00, [EMAIL PROTECTED]
[PATCH] au1x00_uart deadlock fix
This driver also needs to drop the lock when calling back into the tty
layer.
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
au1x00_uart.c | 2 ++
1 files changed, 2 insertions(+)
diff -Nru a/drivers/serial/au1x00_uart.c b/drivers/serial/au1x00_uart.c
--- a/drivers/serial/au1x00_uart.c 2005-03-28 21:47:25 -08:00
+++ b/drivers/serial/au1x00_uart.c 2005-03-28 21:47:25 -08:00
@@ -320,7 +320,9 @@
ignore_char:
*status = serial_inp(up, UART_LSR);
} while ((*status & UART_LSR_DR) && (max_count-- > 0));
+ spin_unlock(&up->port.lock);
tty_flip_buffer_push(tty);
+ spin_lock(&up->port.lock);
}
static _INLINE_ void transmit_chars(struct uart_8250_port *up)
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html