diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/esp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/esp.c b/drivers/char/esp.c index 763d6d2e4b62..662e9cfdcc96 100644 --- a/drivers/char/esp.c +++ b/drivers/char/esp.c | |||
@@ -2040,10 +2040,10 @@ static void rs_wait_until_sent(struct tty_struct *tty, int timeout) | |||
2040 | msleep_interruptible(jiffies_to_msecs(char_time)); | 2040 | msleep_interruptible(jiffies_to_msecs(char_time)); |
2041 | 2041 | ||
2042 | if (signal_pending(current)) | 2042 | if (signal_pending(current)) |
2043 | break; | 2043 | return; |
2044 | 2044 | ||
2045 | if (timeout && time_after(jiffies, orig_jiffies + timeout)) | 2045 | if (timeout && time_after(jiffies, orig_jiffies + timeout)) |
2046 | break; | 2046 | return; |
2047 | 2047 | ||
2048 | spin_lock_irqsave(&info->lock, flags); | 2048 | spin_lock_irqsave(&info->lock, flags); |
2049 | serial_out(info, UART_ESI_CMD1, ESI_NO_COMMAND); | 2049 | serial_out(info, UART_ESI_CMD1, ESI_NO_COMMAND); |