Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757245AbYGAI33 (ORCPT ); Tue, 1 Jul 2008 04:29:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757489AbYGAI21 (ORCPT ); Tue, 1 Jul 2008 04:28:27 -0400 Received: from casper.infradead.org ([85.118.1.10]:36880 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757442AbYGAI2T (ORCPT ); Tue, 1 Jul 2008 04:28:19 -0400 Date: Tue, 1 Jul 2008 09:28:00 +0100 From: Eugene Teo To: linux-kernel@vger.kernel.org Cc: Alan Cox Subject: [PATCH] hamradio: add missing sanity check to tty operation Message-ID: <20080701082800.GA25223@kernel.sg> Reply-To: Eugene Teo MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 996 Lines: 29 Add missing sanity check to tty operation. Cc: Alan Cox Signed-off-by: Eugene Teo --- drivers/net/hamradio/mkiss.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index 6516603..cdebc09 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c @@ -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; -- 1.5.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/