From: Eugene Teo Date: Wed, 30 Jul 2008 19:38:59 +0000 (-0700) Subject: hamradio: add missing sanity check to tty operation X-Git-Tag: v2.6.27-rc3~69^2~13^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5608784fdf417467cbb2ccfb1129500464416f79;p=linux-2.6-omap-h63xx.git hamradio: add missing sanity check to tty operation Add missing sanity check to tty operation. Acked-by: Alan Cox Signed-off-by: Eugene Teo Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index 3249df5e0f1..b8e25c4624d 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c @@ -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;