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)
commita4304f2d5a3823deea894026ec95e43b33912357
tree4b673ae8e7686fe973e1c3a6264389f6712ee222
parent78f28b7c555359c67c2a0d23f7436e915329421e
tty: gigaset: really fix chars_in_buffer

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>
drivers/isdn/gigaset/interface.c