commit: 58112dfbfe02d803566a2c6c8bd97b5fa3c62cdc
From: Dan Carpenter <[email protected]>
Date: Wed, 7 Mar 2012 13:05:00 +0300
Subject: tty: moxa: fix bit test in moxa_start()

This is supposed to be doing a shift before the comparison instead of
just doing a bitwise AND directly.  The current code means the start()
just returns without doing anything.

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Jiri Slaby <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 drivers/tty/moxa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
index 4a26323..8a8d044 100644
--- a/drivers/tty/moxa.c
+++ b/drivers/tty/moxa.c
@@ -1330,7 +1330,7 @@ static void moxa_start(struct tty_struct *tty)
        if (ch == NULL)
                return;
 
-       if (!(ch->statusflags & TXSTOPPED))
+       if (!test_bit(TXSTOPPED, &ch->statusflags))
                return;
 
        MoxaPortTxEnable(ch);
-- 
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to