Commit:     e21654a756177bf209d7a3cbe971f16104555f75
Parent:     b2b2cbc4b2a2f389442549399a993a8306420baf
Author:     Peter Korsgaard <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 22 16:38:40 2006 +0100
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Dec 22 09:58:48 2006 -0800

    [PATCH] serial/uartlite: Only enable port if request_port succeeded
    The uartlite driver used to always enable the port even if request_port
    failed causing havoc. This patch fixes it.
    Signed-off-by: Peter Korsgaard <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/serial/uartlite.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/serial/uartlite.c b/drivers/serial/uartlite.c
index 92eba89..db8607e 100644
--- a/drivers/serial/uartlite.c
+++ b/drivers/serial/uartlite.c
@@ -278,8 +278,8 @@ static int ulite_request_port(struct uart_port *port)
 static void ulite_config_port(struct uart_port *port, int flags)
-       ulite_request_port(port);
-       port->type = PORT_UARTLITE;
+       if (!ulite_request_port(port))
+               port->type = PORT_UARTLITE;
 static int ulite_verify_port(struct uart_port *port, struct serial_struct *ser)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to