tty: Fix inverted logic in send_break
authorAlan Cox <alan@redhat.com>
Mon, 30 Jun 2008 16:40:08 +0000 (17:40 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Jul 2008 02:21:48 +0000 (19:21 -0700)
Not sure how this came to get inverted but it appears to have been my
mess up.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c

index e94bee0323148548d9374852e7b140999af40b81..750131010af01875d06d1c5e11818112c02ecbd2 100644 (file)
@@ -3322,7 +3322,7 @@ static int send_break(struct tty_struct *tty, unsigned int duration)
                msleep_interruptible(duration);
        tty->ops->break_ctl(tty, 0);
        tty_write_unlock(tty);
-       if (!signal_pending(current))
+       if (signal_pending(current))
                return -EINTR;
        return 0;
 }