Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58112dfb authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJiri Slaby <jslaby@suse.cz>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48a7466f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);