diff options
Diffstat (limited to 'drivers/tty/synclink.c')
-rw-r--r-- | drivers/tty/synclink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index e1ce141bad5e..5ae14b46cce0 100644 --- a/drivers/tty/synclink.c +++ b/drivers/tty/synclink.c | |||
@@ -3404,8 +3404,8 @@ static int mgsl_open(struct tty_struct *tty, struct file * filp) | |||
3404 | 3404 | ||
3405 | /* If port is closing, signal caller to try again */ | 3405 | /* If port is closing, signal caller to try again */ |
3406 | if (tty_hung_up_p(filp) || info->port.flags & ASYNC_CLOSING){ | 3406 | if (tty_hung_up_p(filp) || info->port.flags & ASYNC_CLOSING){ |
3407 | if (info->port.flags & ASYNC_CLOSING) | 3407 | wait_event_interruptible_tty(tty, info->port.close_wait, |
3408 | interruptible_sleep_on(&info->port.close_wait); | 3408 | !(info->port.flags & ASYNC_CLOSING)); |
3409 | retval = ((info->port.flags & ASYNC_HUP_NOTIFY) ? | 3409 | retval = ((info->port.flags & ASYNC_HUP_NOTIFY) ? |
3410 | -EAGAIN : -ERESTARTSYS); | 3410 | -EAGAIN : -ERESTARTSYS); |
3411 | goto cleanup; | 3411 | goto cleanup; |