]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/fwserial: Up the tty buffer limit to 128K
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 22 Nov 2013 18:06:09 +0000 (13:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 01:03:03 +0000 (17:03 -0800)
The firewire driver can overrun the tty buffers before the
line discipline can throttle the input; up the buffer limit.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/fwserial.c

index ed7806b8b1dc2eb4c8ebdaa162e95b08e994adff..656fdcbd845af2ee36c3839fbae1a5157c34a227 100644 (file)
@@ -2225,6 +2225,7 @@ static int fwserial_create(struct fw_unit *unit)
                port->index = FWTTY_INVALID_INDEX;
                port->port.ops = &fwtty_port_ops;
                port->serial = serial;
+               tty_buffer_set_limit(&port->port, 128 * 1024);
 
                spin_lock_init(&port->lock);
                INIT_DELAYED_WORK(&port->drain, fwtty_drain_tx);