]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
tty_port: Fix return on interrupted use
authorAlan Cox <alan@linux.intel.com>
Fri, 17 Jul 2009 15:17:26 +0000 (16:17 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Jul 2009 15:50:43 +0000 (08:50 -0700)
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>
drivers/char/tty_port.c

index 4e862a75f7ff213bd62022e852a9d485b65adbbf..9769b1149f7602cf9c2c7ea1a3eab70bfad9b0a0 100644 (file)
@@ -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);