mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
tty: moxa: fix bit test in moxa_start()
commit 58112dfbfe upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ac51a34e78
commit
3fc869e821
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user