Skip to contentSkip to conversation

hamradio: add missing sanity check to tty operation

PATCH Applied [email protected] 2 participants 2 messages Jul 30, 2008 – Aug 7, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/12 hamradio: add missing sanity check to tty operation

From: Eugene Teo <[email protected]>

Add missing sanity check to tty operation.

---

 drivers/net/hamradio/mkiss.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/hamradio/mkiss.c renamed from drivers/net/hamradio/mkiss.c~hamradio-add-missing-sanity-check-to-tty-operation +1 -1
diff -puN drivers/net/hamradio/mkiss.c~hamradio-add-missing-sanity-check-to-tty-operation drivers/net/hamradio/mkiss.c
@@ -548,7 +548,7 @@ static int ax_xmit(struct sk_buff *skb, 
 		}
 
 		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;

_

Applied
#1 lore raw
Quoted 17 lines · [email protected] wrote:

From: Eugene Teo <[email protected]>

Add missing sanity check to tty operation.

---

 drivers/net/hamradio/mkiss.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/hamradio/mkiss.c~hamradio-add-missing-sanity-check-to-tty-operation drivers/net/hamradio/mkiss.c

drivers/net/hamradio/mkiss.c static int ax_xmit(struct sk_buff *skb, · line 554

Quoted 8 lines
drivers/net/hamradio/mkiss.c renamed from drivers/net/hamradio/mkiss.c~hamradio-add-missing-sanity-check-to-tty-operation +1 -1
@@ -548,7 +548,7 @@ static int ax_xmit(struct sk_buff *skb, 
 		}
 
 		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;

applied