Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5608784f authored by Eugene Teo's avatar Eugene Teo Committed by Jeff Garzik
Browse files

hamradio: add missing sanity check to tty operation



Add missing sanity check to tty operation.

Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarEugene Teo <eteo@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 11795aa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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,
		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");
		       "bad line quality" : "driver error");


		ax->xleft = 0;
		ax->xleft = 0;