diff options
author | Alan Cox <alan@redhat.com> | 2009-01-02 08:46:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-02 13:19:39 -0500 |
commit | 36c621d82b956ff6ff72273f848af53e6c581aba (patch) | |
tree | edd387d8275a8f25277d264ffed94e8d1c2ba048 /drivers/char/synclink.c | |
parent | 3b6826b250633361f08a6427a4ac0035e5d88c72 (diff) |
tty: Introduce a tty_port generic block_til_ready
Start sucking more commonality out of the drivers into a single piece of
core code.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/synclink.c')
-rw-r--r-- | drivers/char/synclink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/synclink.c b/drivers/char/synclink.c index ac9f21e18c3f..0ded4ed3da3c 100644 --- a/drivers/char/synclink.c +++ b/drivers/char/synclink.c | |||
@@ -3401,6 +3401,7 @@ static int block_til_ready(struct tty_struct *tty, struct file * filp, | |||
3401 | set_current_state(TASK_RUNNING); | 3401 | set_current_state(TASK_RUNNING); |
3402 | remove_wait_queue(&port->open_wait, &wait); | 3402 | remove_wait_queue(&port->open_wait, &wait); |
3403 | 3403 | ||
3404 | /* FIXME: Racy on hangup during close wait */ | ||
3404 | if (extra_count) | 3405 | if (extra_count) |
3405 | port->count++; | 3406 | port->count++; |
3406 | port->blocked_open--; | 3407 | port->blocked_open--; |