Skip to content

Commit

Permalink
tty_port: Fix return on interrupted use
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jul 17, 2009
1 parent 4b0a840 commit ecc2e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/tty_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ecc2e05

Please sign in to comment.