aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_port.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2009-07-17 16:17:26 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-07-17 08:50:43 -0700
commitecc2e05e739c30870c8e4f252b63a0c4041f2724 (patch)
tree7d8f7ac3ac40bb2e2e8c80954256d173cc8aa46f /drivers/char/tty_port.c
parent4b0a84043e0c14088958fddb62f416d050368011 (diff)
downloadkernel_samsung_crespo-ecc2e05e739c30870c8e4f252b63a0c4041f2724.zip
kernel_samsung_crespo-ecc2e05e739c30870c8e4f252b63a0c4041f2724.tar.gz
kernel_samsung_crespo-ecc2e05e739c30870c8e4f252b63a0c4041f2724.tar.bz2
tty_port: Fix return on interrupted use
Whoops.. fortunately not many people use this yet. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tty_port.c')
-rw-r--r--drivers/char/tty_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tty_port.c b/drivers/char/tty_port.c
index 4e862a7..9769b11 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);