Skip to contentSkip to conversation

hamradio: add missing sanity check to tty operation

PATCH In review Eugene Teo 2 participants 2 messages Jul 1, 2008 Network drivers

lore
Share & tools
lore

Eugene Teo

author
#0 lore raw

PATCH 1/1 hamradio: add missing sanity check to tty operation

Add missing sanity check to tty operation.

---
 drivers/net/hamradio/mkiss.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/hamradio/mkiss.c +1 -1
index 6516603..cdebc09 100644
@@ -546,7 +546,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;
Signature · 1 line
1.5.5.1