提交 4bd82136 编写于 作者: A Alan Cox 提交者: Greg Kroah-Hartman

moxa: dcd handling of CLOCAL is backwards

We should do hangup on dcd loss if CLOCAL is false not true.
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=49911Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e8823f1c
......@@ -1370,7 +1370,7 @@ static void moxa_new_dcdstate(struct moxa_port *p, u8 dcd)
p->DCDState = dcd;
spin_unlock_irqrestore(&p->port.lock, flags);
tty = tty_port_tty_get(&p->port);
if (tty && C_CLOCAL(tty) && !dcd)
if (tty && !C_CLOCAL(tty) && !dcd)
tty_hangup(tty);
tty_kref_put(tty);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册