mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02: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:
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user