提交 5608784f 编写于 作者: E Eugene Teo 提交者: Jeff Garzik

hamradio: add missing sanity check to tty operation

Add missing sanity check to tty operation.
Acked-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NEugene Teo <eteo@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 11795aa4
......@@ -548,7 +548,7 @@ static int ax_xmit(struct sk_buff *skb, struct net_device *dev)
}
printk(KERN_ERR "mkiss: %s: transmit timed out, %s?\n", dev->name,
(ax->tty->ops->chars_in_buffer(ax->tty) || ax->xleft) ?
(tty_chars_in_buffer(ax->tty) || ax->xleft) ?
"bad line quality" : "driver error");
ax->xleft = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册