From: Peter Hurley Date: Fri, 16 Jan 2015 20:22:14 +0000 (-0500) Subject: pty: Fix overlimit memory use X-Git-Tag: fixes-v4.0-rc1~98^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c81622ac4282b0183e738e192c91fabe4a782715;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed