tty: gigaset: really fix chars_in_buffer
authorTilman Schmidt <tilman@imap.cc>
Fri, 7 Aug 2009 03:33:33 +0000 (20:33 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:09 +0000 (13:13 -0700)
The tty_operation chars_in_buffer() is not allowed to return a negative
value to signal an error.  Corrects the problem flagged by commit
23198fda7182969b619613a555f8645fdc3dc334, "tty: fix chars_in_buffers".

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found