Commit ecc2e05e authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

tty_port: Fix return on interrupted use

Whoops.. fortunately not many people use this yet.
Signed-off-by: default avatarAlan Cox <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4b0a8404
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment