[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1397480749.16591.24.camel@linux-fkkt.site>
Date: Mon, 14 Apr 2014 15:05:49 +0200
From: Oliver Neukum <oneukum@...e.de>
To: One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>
Cc: Johan Hovold <jhovold@...il.com>, Jiri Slaby <jslaby@...e.cz>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org,
Peter Hurley <peter@...leysoftware.com>,
Xiao Jin <jin.xiao@...el.com>, david.a.cohen@...ux.intel.com,
yanmin.zhang@...el.com
Subject: Re: [RFC 1/2] n_tty: fix dropped output characters
On Mon, 2014-04-14 at 13:53 +0100, One Thousand Gnomes wrote:
> On Fri, 11 Apr 2014 11:41:24 +0200
> Johan Hovold <jhovold@...il.com> wrote:
>
> > Fix characters being dropped by n_tty_write() due to a failure to
> > check the return value of tty_put_char() in do_output_char().
> >
> > Characters are currently being dropped by write if a tty driver claims
> > to have write room available, but still fails to buffer any data
>
> Your driver is buggy. If you advertise a buffer you must honour it and
> neither shrink nor revoke it.
Is that a general rule or does it apply only till the next write?
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists