From: Alan Cox Date: Fri, 17 Jul 2009 15:17:26 +0000 (+0100) Subject: tty_port: Fix return on interrupted use X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ecc2e05e739c30870c8e4f252b63a0c4041f2724;p=openwrt%2Fstaging%2Fblogic.git tty_port: Fix return on interrupted use Whoops.. fortunately not many people use this yet. Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/tty_port.c b/drivers/char/tty_port.c index 4e862a75f7ff..9769b1149f76 100644 --- a/drivers/char/tty_port.c +++ b/drivers/char/tty_port.c @@ -267,7 +267,7 @@ int tty_port_block_til_ready(struct tty_port *port, if (retval == 0) port->flags |= ASYNC_NORMAL_ACTIVE; spin_unlock_irqrestore(&port->lock, flags); - return 0; + return retval; } EXPORT_SYMBOL(tty_port_block_til_ready);