commit | c81622ac4282b0183e738e192c91fabe4a782715 | [log] [tgz] |
---|---|---|
author | Peter Hurley <peter@hurleysoftware.com> | Fri Jan 16 15:22:14 2015 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Feb 02 10:11:25 2015 -0800 |
tree | 51e88cfcab3db5b04d7afb4ac1d1b51ded21b165 | |
parent | 6ecde472b0d943251f8f348155495391720b61b0 [diff] |
pty: Fix overlimit memory use The pty_space() computation is broken; the space already consumed in the tty buffer is not accounted for. Use tty_buffer_set_limit(), which enforces the limit automatically. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>