tty: gigaset: really fix chars_in_buffer
commitfb6bf2b949962ae553cb07376f5b681bf09e476b
authorTilman Schmidt <tilman@imap.cc>
Fri, 7 Aug 2009 03:33:33 +0000 (6 20:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:31:58 +0000 (5 09:31 -0700)
treeeb375fe0cde666bba6edad0199543265bca793ac
parent55b664beda5a2990afb7e4ec809792e34753fe4e
tty: gigaset: really fix chars_in_buffer

commit a4304f2d5a3823deea894026ec95e43b33912357 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/isdn/gigaset/interface.c