summaryrefslogtreecommitdiff
path: root/drivers/tty/moxa.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-03-07 14:05:00 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-09 00:55:48 +0400
commit58112dfbfe02d803566a2c6c8bd97b5fa3c62cdc (patch)
tree222a415d269089901e8ea1c1d1dd94b955c49169 /drivers/tty/moxa.c
parent48a7466f4dd0104d87a6d8dd0f25027be89c8453 (diff)
downloadlinux-58112dfbfe02d803566a2c6c8bd97b5fa3c62cdc.tar.xz
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 <dan.carpenter@oracle.com> Acked-by: Jiri Slaby <jslaby@suse.cz> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/moxa.c')
-rw-r--r--drivers/tty/moxa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
index 4a26323a926f..8a8d0440bab0 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);