hamradio: add missing sanity check to tty operation
PATCH 1/1 hamradio: add missing sanity check to tty operation
Add missing sanity check to tty operation.
Cc Alan Cox <[email protected]>
Signed-off-by Eugene Teo <[email protected]>
--- drivers/net/hamradio/mkiss.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/hamradio/mkiss.c +1 -1
@@ -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
Quoted 4 lines · On Tue, 1 Jul 2008 09:28:00 +0100 Eugene Teo <[email protected]> wrote:
Add missing sanity check to tty operation.
Cc Alan Cox <[email protected]>Signed-off-by Eugene Teo <[email protected]>
Acked-by Alan Cox <[email protected]>