mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
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>
This commit is contained in:
parent
4b0a84043e
commit
ecc2e05e73
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user