hamradio: add missing sanity check to tty operation
Subsystems (2)
PATCH 6/12 hamradio: add missing sanity check to tty operation
From: Eugene Teo <[email protected]>
Add missing sanity check to tty operation.
Acked-by Alan Cox <[email protected]>
Signed-off-by Eugene Teo <[email protected]>
Cc Jeff Garzik <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
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
@@ -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 ;
_
Jeff Garzik
AppliedQuoted 17 lines · [email protected] wrote:
From: Eugene Teo <[email protected]>
Add missing sanity check to tty operation.
Acked-by Alan Cox <[email protected]>Signed-off-by Eugene Teo <[email protected]>Cc Jeff Garzik <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
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-operationdrivers/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